[vtk-developers] Compile VTK in 2 minutes

Andy Cedilnik andy.cedilnik at kitware.com
Tue May 7 13:48:36 EDT 2002


Ok, so the trick is to use ccache.
What this is is a simple caching of object files. The has function used
depends on preprocessor output, compiler flags, compiler itself,... All
object files are cached and whenever the hashing gets a hit, it uses
copy instead of compile. The result is that the first time you do
regular compile (plus copy), and then you do just copy. 
So, if you are working on documentation on something in vtkObject, you
will appreciate this. 

Anyway, samba people use it and it saves them lots of time. I am using
it on VTK and it does make a difference, though I cannot say how much.
One of the nice things is that if you let say delete vtkWrapTcl it will
have to re-wrap all vtkObjects, but compiling will take almost no time.

Just wanted to share with you if you care.

				Andy Cedilnik

On Tue, 2002-05-07 at 12:00, Andy Cedilnik wrote:
> Hello!
> 
> Just for fun:
> 
> xanth [241] make clean
> ...
> xanth [242] time make -j 4
> make -j 4  121.32s user 30.78s system 151% cpu 1:40.63 total
> 
> xanth [243] ls                                                 
> CCMakeSystemConfig.cmake    Parallel/            vtkCommonInstantiator.h
> CMakeCache.txt              Patented/            vtkConfigure.h
> CXXCMakeSystemConfig.cmake  Rendering/          
> vtkFilteringInstantiator.h
> Common/                     Testing/            
> vtkGraphicsInstantiator.h
> DartConfiguration.tcl       UseVTK.cmake         vtkHybridInstantiator.h
> DartTestfile.txt            Utilities/           vtkIOInstantiator.h
> Examples/                   Wrapping/           
> vtkImagingInstantiator.h
> Filtering/                  bin/                
> vtkParallelInstantiator.h
> Graphics/                   cmake.check_depends 
> vtkPatentedInstantiator.h
> Hybrid/                     cmake.depends       
> vtkRenderingInstantiator.h
> IO/                         config.cache         vtkToolkits.h
> Imaging/                    config.log
> Makefile                    config.status
> 
> GCC rocks!
> 
> 			Andy
> 
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at public.kitware.com
> http://public.kitware.com/mailman/listinfo/vtk-developers
> 





More information about the vtk-developers mailing list