Major optimization of C/C++ dependency scanning.
Now only the dependencies for the file where the dependencies actually may have changed are rescanned, before that this was done for all source files even if only one source file had changed. This reduces e.g. on my machine the time for scanning the dependencies of kdelibs/khtml/ when only one file (khtml_global.cpp) has changed from around 7.5 seconds to 1.2 seconds. The tests succeed, it does what I expected it to do on kdelibs, and Brad also reviewed the patch, so I think it should be ok. Alex
Showing
- Source/cmDepends.cxx 23 additions, 3 deletionsSource/cmDepends.cxx
- Source/cmDepends.h 9 additions, 4 deletionsSource/cmDepends.h
- Source/cmDependsC.cxx 33 additions, 2 deletionsSource/cmDependsC.cxx
- Source/cmDependsC.h 3 additions, 1 deletionSource/cmDependsC.h
- Source/cmDependsJava.cxx 2 additions, 1 deletionSource/cmDependsJava.cxx
- Source/cmDependsJava.h 2 additions, 1 deletionSource/cmDependsJava.h
- Source/cmLocalUnixMakefileGenerator3.cxx 19 additions, 7 deletionsSource/cmLocalUnixMakefileGenerator3.cxx
- Source/cmLocalUnixMakefileGenerator3.h 5 additions, 1 deletionSource/cmLocalUnixMakefileGenerator3.h
Loading
Please register or sign in to comment