1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/lib
Sam 0b9bf2e2df
PERF: symbolize ivar, to reduce dupes
I noticed this in my memory profiler report.

```
 153  "@default_url_options"
       152  /home/sam/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/activesupport-5.1.4/lib/active_support/core_ext/class/attribute.rb:84
```

152 copies of the string `@default_url_options` are retained on the heap in Discourse post boot. 

Since this is just used for ivar lookups there is no need to use a string.
2018-02-15 18:14:57 +11:00
..
active_support PERF: symbolize ivar, to reduce dupes 2018-02-15 18:14:57 +11:00
active_support.rb Bump license years for 2018 2017-12-31 22:36:55 +09:00