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

Freeze string literals in AutoInstrument layer #496

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ibrahima
Copy link
Contributor

@ibrahima ibrahima commented Mar 22, 2024

I think if you have a lot of AutoInstrumentation going on, this results in a lot of repeated memory allocations for the same string.

Addresses #495

I tested this out in our staging environment and it does remove the string allocations from strings in these files. I don't know if this is meaningful at all or if it's worth doing it piecemeal like this, versus just adding the pragma to everything or relying on the user to pass some Ruby options to freeze all string literals.

I think if you have a lot of AutoInstrumentation going on, this results in a lot of repeated memory allocations for the same string.
@ibrahima ibrahima marked this pull request as draft March 22, 2024 00:15
'AutoInstrument' is used in a comparison here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant