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

Add fast huf decoder #1269

Merged
merged 2 commits into from
Jul 31, 2022
Merged

Conversation

kdt3rd
Copy link
Contributor

@kdt3rd kdt3rd commented Jul 10, 2022

port of c++ fast huf decoder, other misc performance tweaks.

Based on a patch by Phil Barrett

Signed-off-by: Kimball Thurston kdt3rd@gmail.com

port of c++ fast huf decoder, other misc performance tweaks.

Based on a patch by Phil Barrett

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
Copy link
Contributor

@meshula meshula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

structurally this all looks good. Are there associated existing tests that this passes? Also, merely for curiosity's sake, what's the magnitude of the speed up?

@kdt3rd
Copy link
Contributor Author

kdt3rd commented Jul 11, 2022

yes, there are both the direct huf encode / decode tests in compression.cpp in the core tests (they were pre-existing), and the piz compression tests which exercise this. This should return the performance to at least the same speed as is in the huf decompression in c++ (this is a c-ification of that), although Phil also suggested a couple other small changes like an extension to a faster version of the READ64 to other systems, such as Apple and MSVC.

@cary-ilm cary-ilm merged commit 115e42e into AcademySoftwareFoundation:main Jul 31, 2022
cary-ilm pushed a commit to cary-ilm/openexr that referenced this pull request Mar 3, 2023
* Add fast huf decoder

port of c++ fast huf decoder, other misc performance tweaks.

Based on a patch by Phil Barrett

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>

* Avoid min / max macros on Win32

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
cary-ilm pushed a commit that referenced this pull request Mar 5, 2023
* Add fast huf decoder

port of c++ fast huf decoder, other misc performance tweaks.

Based on a patch by Phil Barrett

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>

* Avoid min / max macros on Win32

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
@cary-ilm cary-ilm added the v3.1.6 label Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants