Replace single-threaded bzip2/gzip with multi-threaded lbzip2/pigz as dependency
#1
Lightbulb 
Any thoughts regarding replacing bzip2 and gzip libraries with lbzip2 and pigz as Kodi build dependencies for bzip2 and gzip compression/decompression?

http://lbzip2.org

http://zlib.net/pigz/

lbzip2 and pigz both supports multithreading (which bzip2 and gzip library does not) so should be faster on most if not all multi-core systems.

http://www.cnx-software.com/2016/12/16/c...-of-bzip2/

I guess other than stability the biggest concern is memory constrains which might need testing on such platforms as example 256MB Raspberry Pi?

Another alternative to lbzip2 is pbzip2 which also supports multithreading.

http://compression.ca/pbzip2/

And though off-topic for Kodi, the same goes for pixz instead of pxz for xz compression as point I am trying to make it to use multithreaded libs if possible.

Further reaching discussion is if now is a good time for Kodi to replace some single-threaded dependency libraries with multi-threaded libraries?
Reply

Logout Mark Read Team Forum Stats Members Help
Replace single-threaded bzip2/gzip with multi-threaded lbzip2/pigz as dependency0