AOSC-Dev / aosc-os-abbs

ABBS/ACBS tree for AOSC OS package metadata, build configuration, scripts, and patches
https://packages.aosc.io
GNU General Public License v2.0
102 stars 80 forks source link

Possibility of switching to Cloudflare / Intel zlib #1516

Closed bobcao3 closed 5 years ago

bobcao3 commented 5 years ago

Related benchmarks/articles: https://blog.cloudflare.com/cloudflare-fights-cancer/ http://www.htslib.org/benchmarks/zlib.html https://www.snellman.net/blog/archive/2014-08-04-comparison-of-intel-and-cloudflare-zlib-patches.html

Links: https://github.com/cloudflare/zlib https://github.com/jtkukunas/zlib (Intel zlib)

Possible problems: It is very much possible that these two zlibs are targeted for x86_64 platforms and uses lots of SIMD. There may be compatibility issues on other architecture. But I suggest to use one of them in the opt-avx2 overlay as it is proven that these libs greatly improve compression performance on these new platforms with better SIMD results. More experiments about compatibility should be tested, but theses libs should have the same API and possibly ABI.

MingcongBai commented 5 years ago

Could you please move this issue to AOSC-Dev/aosc-os-core? ZLib is not a part of the ABBS tree.

bobcao3 commented 5 years ago

https://github.com/AOSC-Dev/aosc-os-core/issues/70