VS: Cache the list of xaml and resx headers

Speed up VS project generation with many such headers.
This commit is contained in:
Dmitry Kochkin
2017-02-25 22:56:13 +01:00
committed by Brad King
parent cdb6d7df97
commit 73a6d4566a
2 changed files with 23 additions and 7 deletions

View File

@@ -739,6 +739,10 @@ private:
bool ComputePDBOutputDir(const std::string& kind, const std::string& config,
std::string& out) const;
typedef std::map<std::string, std::set<std::string> > HeadersCacheType;
mutable HeadersCacheType ResxHeadersCache;
mutable HeadersCacheType XamlHeadersCache;
public:
const std::vector<const cmGeneratorTarget*>& GetLinkImplementationClosure(
const std::string& config) const;