diff options
author | schneems <richard.schneeman@gmail.com> | 2015-07-24 23:19:15 -0500 |
---|---|---|
committer | schneems <richard.schneeman@gmail.com> | 2015-07-29 20:41:57 -0500 |
commit | 0cbec58ae48279ae5e9fdf6bbdbceb32183215dd (patch) | |
tree | 1bed3550b55f63e39b9575e4ab4fb98b55742968 /rails.gemspec | |
parent | 097ec6fb7c7e1854cdd96113213b555ae7415953 (diff) | |
download | rails-0cbec58ae48279ae5e9fdf6bbdbceb32183215dd.tar.gz rails-0cbec58ae48279ae5e9fdf6bbdbceb32183215dd.tar.bz2 rails-0cbec58ae48279ae5e9fdf6bbdbceb32183215dd.zip |
Decrease route_set allocations
In handle_positional_args `Array#-=` is used which allocates a new array. Instead we can iterate through and delete elements, modifying the array in place.
Also `Array#take` allocates a new array. We can build the same by iterating over the other element.
This change buys us 106,470 bytes of memory and 2,663 fewer objects per request.
Diffstat (limited to 'rails.gemspec')
0 files changed, 0 insertions, 0 deletions