diff options
author | Eileen M. Uchitelle <eileencodes@users.noreply.github.com> | 2018-02-16 11:18:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-16 11:18:57 -0500 |
commit | c0e055c33f46e7e8f2649e849cf0706532c3818d (patch) | |
tree | fc366cbd4c7fd29bb37fa6b21120dcdce6a128f2 /actionpack | |
parent | d2571f517314a12763bdef945a6cbe8c4f5ecb63 (diff) | |
parent | 98d4fc3e82ebfd535b05b7f6e3abb4b03595c2dd (diff) | |
download | rails-c0e055c33f46e7e8f2649e849cf0706532c3818d.tar.gz rails-c0e055c33f46e7e8f2649e849cf0706532c3818d.tar.bz2 rails-c0e055c33f46e7e8f2649e849cf0706532c3818d.zip |
Merge pull request #32016 from SamSaffron/visitors
PERF: reduce retained objects in Journey
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/journey/nodes/node.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/journey/nodes/node.rb b/actionpack/lib/action_dispatch/journey/nodes/node.rb index 08b931a3cd..6f12052713 100644 --- a/actionpack/lib/action_dispatch/journey/nodes/node.rb +++ b/actionpack/lib/action_dispatch/journey/nodes/node.rb @@ -32,7 +32,7 @@ module ActionDispatch end def name - left.tr "*:".freeze, "".freeze + -(left.tr "*:", "") end def type @@ -82,7 +82,7 @@ module ActionDispatch def initialize(left) super @regexp = DEFAULT_EXP - @name = left.tr "*:".freeze, "".freeze + @name = -(left.tr "*:", "") end def default_regexp? |