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.cxx | |
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.cxx')
-rw-r--r-- | Source/cmDependsJava.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmDependsJava.cxx b/Source/cmDependsJava.cxx index dbca276..b7b1e9a 100644 --- a/Source/cmDependsJava.cxx +++ b/Source/cmDependsJava.cxx @@ -43,7 +43,8 @@ bool cmDependsJava::WriteDependencies(const char *src, const char *, return true; } -bool cmDependsJava::CheckDependencies(std::istream&) +bool cmDependsJava::CheckDependencies(std::istream&, + std::map<std::string, DependencyVector >&) { return true; } |