Re: zlib-ng as a compat replacement for zlib

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Aug 06, 2023 at 04:34:46AM -0000, Daniel Alley wrote:
> >In my test zlib-ng is about 40% faster.
>
> I did some testing with zlib-ng and createrepo-c a few months ago
> [0], and I also found that the compression portion of the workload
> was about 40% faster.  So this matches my experience, too.
>
> (BTW, if that github comment [0] sounds negative, it isn't meant to,
> it's just that zlib ended up not being the primary culprit of the
> performance issue I was investigating at the time, so I was not as
> immediately interested in replacing it.)
>
> I support this proposal.  A tricky detail is that one of the big
> upsides of zlib-ng is that it has a lot of optimized codepaths for
> ARM, POWER, Z, RISC-V, AVX-256, AVX-512 and so forth which
> madler/zlib does not have.  And that's fantastic, but I expect it
> could make the testing process a bit more painful.

There are indeed quite a lot.  For example this is just x86:

https://github.com/zlib-ng/zlib-ng/tree/develop/arch/x86

> Since each of the arch-specific acceleration codepaths is behind a
> separate build flag [1] though, (I assume) we could easily do a more
> conservative rollout with most arch-specific optimizations disabled
> at first, and then enabled gradually over time.

& the other thing it is important to note is that it does seem to do
CPUID detection at runtime, so we are able to ship a "runs anywhere"
binary.  See:

https://github.com/zlib-ng/zlib-ng/blob/develop/arch/x86/x86_features.c

Rich.

> [0] https://github.com/rpm-software-management/createrepo_c/pull/335#issuecomment-1381362220
> [1] https://github.com/zlib-ng/zlib-ng#advanced-build-options
> _______________________________________________
> devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
> Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux