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

rails/action_controller_route_subscriber: reduce allocations #1012

Merged
merged 1 commit into from Sep 24, 2019

Conversation

kyrylo
Copy link
Contributor

@kyrylo kyrylo commented Sep 24, 2019

The memory_profiler gem reports that Ruby allocates 22.6 Kb just for the
'controller' string. Since this code path is critical, we want to squeeze out
the best performance we can achieve. Making the keys constant reduces
allocations to zero.

The `memory_profiler` gem reports that Ruby allocates 22.6 Kb just for the
'controller' string. Since this code path is critical, we want to squeeze out
the best performance we can achieve. Making the keys constant reduces
allocations to zero.
@kyrylo kyrylo merged commit b4a9600 into master Sep 24, 2019
@kyrylo kyrylo deleted the rails-hook-allocation-reduction branch September 24, 2019 10:28
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

1 participant