diff options
author | Brad King <brad.king@kitware.com> | 2001-04-16 16:31:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2001-04-16 16:31:56 (GMT) |
commit | f63e4a144c20ed04828e9a13e24f4d878a876576 (patch) | |
tree | 2ebb793ccdd198706a696867a579f5de59a1ec00 /Source/cmMakeDepend.h | |
parent | e963dcaa8f37fac0fc450dfa1707266469f57998 (diff) | |
download | CMake-f63e4a144c20ed04828e9a13e24f4d878a876576.zip CMake-f63e4a144c20ed04828e9a13e24f4d878a876576.tar.gz CMake-f63e4a144c20ed04828e9a13e24f4d878a876576.tar.bz2 |
ENH: Changed m_Indices to an stl set and renamed it to m_IndexSet. Using a set results in a significant performance increase and reduction in memory usage.
Diffstat (limited to 'Source/cmMakeDepend.h')
-rw-r--r-- | Source/cmMakeDepend.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/cmMakeDepend.h b/Source/cmMakeDepend.h index 731150f..cb5a9d7 100644 --- a/Source/cmMakeDepend.h +++ b/Source/cmMakeDepend.h @@ -39,10 +39,12 @@ struct cmDependInformation } /** - * A list of indices into the m_DependInformation array of cmMakeDepend. + * A set of indices into the m_DependInformation array of cmMakeDepend. * The index represents the files that this file depends on. + * This must be a "set" to keep indices unique. */ - std::vector<int> m_Indices; + typedef std::set<int> IndexSet; + IndexSet m_IndexSet; /** * Full path to this file. @@ -70,11 +72,6 @@ struct cmDependInformation * This method adds the dependencies of another file to this one. */ void MergeInfo(cmDependInformation*); - - /** - * This method removes duplicate depends from the index list. - */ - void RemoveDuplicateIndices(); }; |