These are my results: All the details go below, but in two computers, both with cmake 2.6.0 (from the Ubuntu repositories), it takes ~ 50sec vs. 19sec to recompile when only one file changes... and the longest delay happens in the better PC, though the CPU's are very similar in speeds. Both cases are local file systems (through ntfs, but the same in both cases).<br>
<br>In addition, I started with a fresh CMAKE_BINARY_DIR directory in both cases. <br><br>Please, let me know if I can do any more logging.<br><br>Regards,<br>JL<br><br><br>=============================<br>PC #1<br>DESKTOP PC, QuadCore 2.4Ghz: <br>
=============================<br><br>==> touch'ing just one .cpp file in the project, the "time make VERBOSE=1" gives: 49.882s<br><br>cd /home/jlblanco/code/mrpt-release && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /home/jlblanco/code/mrpt-src /home/jlblanco/code/mrpt-src/src/core /home/jlblanco/code/mrpt-release /home/jlblanco/code/mrpt-release/src/core /home/jlblanco/code/mrpt-release/src/core/CMakeFiles/mrpt-core.dir/DependInfo.cmake --color=<br>
<br>Most of the time goes in these 3 steps:<br><br>Dependee "/home/jlblanco/code/mrpt-src/src/core/math/CMatrix.cpp" is newer than depender "src/core/CMakeFiles/mrpt-core.dir/math/CMatrix.o".<br>Clearing dependencies in "/home/jlblanco/code/mrpt-release/src/core/CMakeFiles/mrpt-core.dir/depend.make".<br>
<br>Clearing dependencies in "/home/jlblanco/code/mrpt-release/src/core/CMakeFiles/mrpt-core.dir/depend.make".<br><br>Scanning dependencies of target mrpt-core <<<< Longest task<br><br>real 0m49.882s<br>
user 0m5.424s<br>sys 0m7.064s<br><br><br>==> without touching (just realizing there's nothing to do): 12.89s<br><br>Most of the time goes in:<br><br>cd /home/jlblanco/code/mrpt-release && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /home/jlblanco/code/mrpt-src /home/jlblanco/code/mrpt-src/src/core /home/jlblanco/code/mrpt-release /home/jlblanco/code/mrpt-release/src/core /home/jlblanco/code/mrpt-release/src/core/CMakeFiles/mrpt-core.dir/DependInfo.cmake --color=<br>
<br>real 0m12.896s<br>user 0m1.384s<br>sys 0m1.560s<br><br><br>=============================<br>PC # 2<br>LAPTOP PC, DualCore 2.0Ghz: <br>
=============================<br>
<br>==> touch'ing just one .cpp file in the project, the "time make VERBOSE=1" gives: 18.78s<br>
<br>Most of the tiime goes to:<br><br>cd /home/jlblanco/code/mrpt-release && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/jlblanco/code/mrpt-src /home/jlblanco/code/mrpt-src/src/core /home/jlblanco/code/mrpt-release /home/jlblanco/code/mrpt-release/src/core /home/jlblanco/code/mrpt-release/src/core/CMakeFiles/mrpt-core.dir/DependInfo.cmake --color=<br>
Dependee "/home/jlblanco/code/mrpt-src/src/core/utils/CMRPTImage.cpp" is newer than depender "src/core/CMakeFiles/mrpt-core.dir/utils/CMRPTImage.o".<br>Clearing dependencies in "/home/jlblanco/code/mrpt-release/src/core/CMakeFiles/mrpt-core.dir/depend.make".<br>
Scanning dependencies of target mrpt-core<br><br>real 0m18.788s<br>user 0m7.456s<br>sys 0m4.552s<br><br><br><br>==> without touching (just realizing there's nothing to do): 2.23s<br><br>real 0m2.234s<br>
user 0m1.468s<br>sys 0m0.528s<br><br><br><br><br><br><br><div class="gmail_quote">On Thu, Dec 4, 2008 at 4:02 AM, Bill Hoffman <span dir="ltr"><<a href="mailto:bill.hoffman@kitware.com" target="_blank">bill.hoffman@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Jose Luis Blanco wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
If this helps anyone, I'm working on a large project using CMake and in two different computers, both with the same version of Ubuntu and cmake, it is *REALLY SLOW* in only one of them while scanning dependencies, but it's not in the other laptop. (The "slow" dep. scanning is ~1 min. too)<br>
<br>
I'd be happy to help debugging this, because it's really annoying :-(<br>
<br>
</blockquote></div>
I wonder if it is hitting a network mount disk or something like that... Are the same versions of cmake identical binaries?<br><font color="#888888">
<br>
-Bill<br>
</font></blockquote></div><br><br clear="all"><br>-- <br><br>___________________________________________________________<br><br>Jose-Luis Blanco-Claraco Phone: +34 952 132848<br>Dpto. Ingenieria de Sistemas y Automatica<br>
E.T.S.I. Telecomunicacion Fax: +34 952 133361<br>Universidad de Malaga<br>Campus Universitario de Teatinos<br>29071 Malaga, Spain<br><br><a href="http://www.isa.uma.es/jlblanco" target="_blank">http://www.isa.uma.es/jlblanco</a><br>
___________________________________________________________<br><br><br>