Skip to content

Shrink ErtsAtomTranslationTable to correct max size #9809

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sverker
Copy link
Contributor

@sverker sverker commented May 7, 2025

Shrink ErtsAtomTranslationTable from 2048 to 255 slots. Only 255 slots can be used (0-254) as only one byte is used in distribution header for NumberOfAtomCacheRefs and in ATOM_CACHE_REF for AtomCacheReferenceIndex.

This will probably not be a significant performance gain as it will only affect the native stack frame size of erts_net_message().

Shrink ErtsAtomTranslationTable from 2048 to 255 slots.
Only 255 slots can be used (0-254) as only one byte is used
in distribution header for NumberOfAtomCacheRefs and in
ATOM_CACHE_REF for AtomCacheReferenceIndex.
@sverker sverker self-assigned this May 7, 2025
@sverker sverker added team:VM Assigned to OTP team VM enhancement testing currently being tested, tag is used by OTP internal CI labels May 7, 2025
Copy link
Contributor

github-actions bot commented May 7, 2025

CT Test Results

    3 files    142 suites   50m 50s ⏱️
1 647 tests 1 590 ✅ 57 💤 0 ❌
2 370 runs  2 293 ✅ 77 💤 0 ❌

Results for commit 1222c02.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

@sverker sverker requested a review from rickard-green May 8, 2025 10:59
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement team:VM Assigned to OTP team VM testing currently being tested, tag is used by OTP internal CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant