diff options
author | Alexander Neundorf <neundorf@kde.org> | 2009-09-23 18:02:05 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2009-09-23 18:02:05 (GMT) |
commit | 39383ef8cb691656012275721064baef1e4f7511 (patch) | |
tree | 8d16274bd2092a6abe925bc7756c8a23594fd4b6 /Source/cmDependsJava.h | |
parent | 551fcc23c220fd75eaeea7671f28e8360e466b75 (diff) | |
download | CMake-39383ef8cb691656012275721064baef1e4f7511.zip CMake-39383ef8cb691656012275721064baef1e4f7511.tar.gz CMake-39383ef8cb691656012275721064baef1e4f7511.tar.bz2 |
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
Diffstat (limited to 'Source/cmDependsJava.h')
-rw-r--r-- | Source/cmDependsJava.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmDependsJava.h b/Source/cmDependsJava.h index 9275130..1325830 100644 --- a/Source/cmDependsJava.h +++ b/Source/cmDependsJava.h @@ -36,7 +36,8 @@ protected: // Implement writing/checking methods required by superclass. virtual bool WriteDependencies(const char *src, const char *file, std::ostream& makeDepends, std::ostream& internalDepends); - virtual bool CheckDependencies(std::istream& internalDepends); + virtual bool CheckDependencies(std::istream& internalDepends, + std::map<std::string, DependencyVector >& validDeps); private: cmDependsJava(cmDependsJava const&); // Purposely not implemented. |