MantisBT - CMake |
| View Issue Details |
|
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0011412 | CMake | CMake | public | 2010-11-06 06:40 | 2011-01-12 07:45 |
|
| Reporter | Christian Ehrlicher | |
| Assigned To | Brad King | |
| Priority | normal | Severity | tweak | Reproducibility | always |
| Status | closed | Resolution | fixed | |
| Platform | | OS | | OS Version | |
| Product Version | CMake 2.8.3 | |
| Target Version | CMake 2.8.4 | Fixed in Version | CMake 2.8.4 | |
|
| Summary | 0011412: Speedup calls to find_library and find_path |
| Description | cmFindLibraryCommand 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.
|
| Steps To Reproduce | |
| Additional Information | |
| Tags | No tags attached. |
| Relationships | |
| Attached Files | cmake_strstr.diff (10,717) 2010-11-06 06:40 https://public.kitware.com/Bug/file/3478/cmake_strstr.diff |
|
| 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 |