rails/activesupport/lib
Jeremy Kemper b474d06d5e Perf: save ~9% of object allocations on heavy requests.
The per-thread registry is keyed on the class name, and each request for
the class name returns a new string. This is in the hot path for a lot
of Active Record behavior, so we easily accumulate thousands of repeated
strings.

To fix, we simply cache the key when the class is first extended with
the module.

TODO: Eliminate this module. The per-thread instance concept is common,
but this technique confuses and obfuscates.
2013-12-12 18:53:32 -07:00
..
active_support Perf: save ~9% of object allocations on heavy requests. 2013-12-12 18:53:32 -07:00
active_support.rb Make load of NumberHelper thread safe 2013-12-02 22:12:36 -02:00