Skip to content

Use set_table to track const caches #13184

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

Merged
merged 1 commit into from
Apr 26, 2025
Merged

Conversation

byroot
Copy link
Member

@byroot byroot commented Apr 26, 2025

Now that we have a set_table implementation, we can use it to track const caches and save some memory.

We could even save some more memory if numtable didn't store a copy of the hash and instead recomputed it every time, but this is a quick win.

@byroot byroot requested a review from jeremyevans April 26, 2025 06:06
Now that we have a `set_table` implementation, we can
use it to track const caches and save some memory.

We could even save some more memory if `numtable` didn't
store a copy of the `hash` and instead recomputed it every
time, but this is a quick win.
@byroot byroot merged commit c0417bd into ruby:master Apr 26, 2025
85 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants