View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011412CMakeCMakepublic2010-11-06 06:402011-01-12 07:45
ReporterChristian Ehrlicher 
Assigned ToBrad King 
PrioritynormalSeveritytweakReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake 2.8.3 
Target VersionCMake 2.8.4Fixed in VersionCMake 2.8.4 
Summary0011412: Speedup calls to find_library and find_path
DescriptioncmFindLibraryCommand and others initialize the documentation in the ctor. This doesn't make sense and slows down cmake execution (especially because it looks like for every find_foo command a new cmFindFoo instance is created). I've split out the generation of documentation to the (already virtual) GetFullDocumentation() - call. This speeds up my project for 0000022:0000010 percent (which is 0000041:0000001 second). Maybe it's worth to change all cmFindFoo commands this way?
Attached you can find a patch I used for this quick test. It's against 4.8.3. A diff between the original and the modified output of '--help-full' shows no difference.
TagsNo tags attached.
Attached Filesdiff file icon cmake_strstr.diff [^] (10,717 bytes) 2010-11-06 06:40 [Show Content]

 Relationships

  Notes
(0023203)
Brad King (manager)
2010-11-12 10:55

Good catch, thanks:

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=5303fbf0 [^]

 Issue History
Date Modified Username Field Change
2010-11-06 06:40 Christian Ehrlicher New Issue
2010-11-06 06:40 Christian Ehrlicher File Added: cmake_strstr.diff
2010-11-12 10:48 Brad King Status new => assigned
2010-11-12 10:48 Brad King Assigned To => Brad King
2010-11-12 10:55 Brad King Note Added: 0023203
2010-11-12 10:55 Brad King Status assigned => closed
2010-11-12 10:55 Brad King Resolution open => fixed
2011-01-12 07:45 David Cole Fixed in Version => CMake 2.8.4
2011-01-12 07:45 David Cole Target Version => CMake 2.8.4


Copyright © 2000 - 2018 MantisBT Team