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

Frozen string literal #1033

Merged
merged 2 commits into from Aug 19, 2023
Merged

Conversation

technicalpickles
Copy link
Contributor

I was going over some memory_profiler reports, and was digging into some of the memory usage attributed. It looks like there are some hot paths in the code base that have string literals, and without frozen_string_literal: true, these would end up creating new strings each time.

For this PR, I added a rubocop rule for requiring frozen_string_literal, and then auto-corrected it.

@bblimke bblimke merged commit 9305ab5 into bblimke:master Aug 19, 2023
1 of 7 checks passed
@bblimke
Copy link
Owner

bblimke commented Aug 19, 2023

Thank you @technicalpickles !

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.

None yet

3 participants