[CMake] CPack with BZIP2 is a lot slower than GNU tar

Bill Hoffman bill.hoffman at kitware.com
Thu Jun 2 11:42:02 EDT 2016


On 6/2/2016 5:29 AM, Alessio wrote:
> I'm comparing the following two things:
>   1. cpack TBZ2 generator
>   2. "tar cjf" the same files as with cpack. (j option = BZIP2 compression)
>
> I cannot avoid CPack. It takes care of way too many little details of
> the packaging. Obviously we use it via lots of install() statements in
> our CMakeLists.txt files.
>
Sounds like it needs some performance testing.   One thing to try would 
be to compare cmake -E tar with tar and see if it is libtar that is 
slow, or something CPack is doing.  After that, maybe calgrind or other 
tools to profile cpack.

-Bill



More information about the CMake mailing list