Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common/Hash: use zlib-ng for adler32. small cleanups. #10903

Merged
merged 1 commit into from Aug 2, 2022

Conversation

shuffle2
Copy link
Contributor

@shuffle2 shuffle2 commented Jul 27, 2022

For "larger" buffer sizes, like those used by CompressedBlobReader, I've seen it be up to 20x faster (smaller buffers are generally faster as well, but not by as large a margin). Admittedly it's still a really small amount of wall clock time either way.

edit: actaully looking more, this seems to be a large speedup for CompressedBlobReader use cases that read larger chunks. Haven't measured exactly, but the adler32 call for netplay's 8MiB chunks goes from taking 12-13% of total time, to < 1% of it (zlib-ng has chosen adler32_avx2 on my system, fwiw)

@shuffle2 shuffle2 force-pushed the hash-reorg branch 2 times, most recently from 6666699 to 2087870 Compare July 30, 2022 18:25
Source/Core/Common/Hash.h Outdated Show resolved Hide resolved
@Tilka Tilka merged commit 7d2d5d9 into dolphin-emu:master Aug 2, 2022
11 checks passed
@shuffle2 shuffle2 deleted the hash-reorg branch August 3, 2022 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants