On Wed, Nov 14, 2018 at 10:20 AM Poughon Victor <victor.poug...@cnes.fr> wrote:
> Hi all > > I am working on a large C++ project using CMake ( > https://www.orfeo-toolbox.org/) and our 'configure' step takes quite a > lot of time. This can be annoying for developers working on features where > the configure step needs to be re-run, or for CI in general. > > We have looked into it a bit and it seems like one issue is that the > configure/generate steps do a lot of small files I/O. Specifically, using: > > inotofy-wait -mr <build_dir> > > shows that "cmake ." causes about 150K file access/modify, etc. There are > some especially guilty looking files like 'Makefile2.tmp' or 'progress.tmp' > that appear thousands of times in most of the log file. > > I have an SSD which somewhat helps, but for colleagues still on mechanical > drives this is especially painful. Is there a way to disable writing all > those files to the disk? > > Any other tips on optimizing the performance of 'cmake .'? > > Thanks, > > Victor Poughon > > Hi, if a subsequent CMake run is faster than the initial one, you can have a look at https://github.com/cristianadam/cmake-checks-cache If you cache the results of the configure checks you can have the initial run as fast as subsequent ones! Cheers, Cristian.
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake