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

Fix Huffman performance regression on Linux/clang #1480

Merged
merged 1 commit into from
Jul 9, 2023

Conversation

peterurbanec
Copy link
Contributor

PR #1323 introduces a nested #ifdef check that results in a performance regression on Linux systems that use the clang compiler. This is because the check for __clang__ succeeds, but the nested check for __APPLE__ fails. As a result, the #elif case is not taken on Linux.

Fixes issue #1479

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jul 4, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: peterurbanec / name: Peter Urbanec (90d565c)

PR AcademySoftwareFoundation#1323 introduces a nested #ifdef check that results in a performance
regression on Linux systems that use the clang compiler. This is because
the check for __clang__ succeeds, but the nested check for __APPLE__
fails. As a result, the elif case is not taken on Linux.

Fixes issue AcademySoftwareFoundation#1479


Signed-off-by: Peter Urbanec <[email protected]>
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.

good catch, thanks!

@cary-ilm cary-ilm merged commit 114cc64 into AcademySoftwareFoundation:main Jul 9, 2023
cary-ilm pushed a commit to cary-ilm/openexr that referenced this pull request Jul 25, 2023
…ndation#1480)

PR AcademySoftwareFoundation#1323 introduces a nested #ifdef check that results in a performance
regression on Linux systems that use the clang compiler. This is because
the check for __clang__ succeeds, but the nested check for __APPLE__
fails. As a result, the elif case is not taken on Linux.

Fixes issue AcademySoftwareFoundation#1479

Signed-off-by: Peter Urbanec <[email protected]>
cary-ilm pushed a commit that referenced this pull request Jul 31, 2023
PR #1323 introduces a nested #ifdef check that results in a performance
regression on Linux systems that use the clang compiler. This is because
the check for __clang__ succeeds, but the nested check for __APPLE__
fails. As a result, the elif case is not taken on Linux.

Fixes issue #1479

Signed-off-by: Peter Urbanec <[email protected]>
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.

3 participants