Skip to content

Conversation

ansd
Copy link
Member

@ansd ansd commented Jun 11, 2025

Avoid using the size/1 BIF for performance critical code because according to
https://whatsapp.github.io/erlang-language-platform/docs/erlang-error-index/w/W0050/

The BIF is not optimized by the JIT

Avoid using the size/1 BIF for performance critical code because
according to
https://whatsapp.github.io/erlang-language-platform/docs/erlang-error-index/w/W0050/
"The BIF is not optimized by the JIT".
@michaelklishin
Copy link
Collaborator

Good catch.

@ansd ansd merged commit 1850ff1 into main Jun 11, 2025
566 of 567 checks passed
@ansd ansd deleted the byte_size branch June 11, 2025 12:14
@michaelklishin michaelklishin added this to the 4.2.0 milestone Jun 11, 2025
michaelklishin added a commit that referenced this pull request Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants