Opened 46 hours ago

Last modified 46 hours ago

#19223 new enhancement

Make `/bin/package create` use multiple threads.

Reported by: bipolar Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Kits/Package Kit Version: R1/beta5
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

While working on HaikuPorts stuff, I noticed that for many recipes the actual creation of the .hpkg files can take quite a significant portion of the total build time (sometimes larger than the actual BUILD() + INSTALL() steps combined).

If at all possible, making /bin/package create able to use more than one CPU core during compression might offer significant speed ups, right?


After some light code reading, I guess it boils down to making SupportKit's BCompressionAlgorithm::CompressBuffer() use multi-threaded code on its derived classes (zlib/zstd).

For zstd, it seems like it would be possible via ZSTD_compress2() (ZSTD_c_nbWorkers parameter of the "advanced API").

Change History (1)

comment:1 by waddlesplash, 46 hours ago

Component: - GeneralKits/Package Kit
Note: See TracTickets for help on using tickets.