mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
b474d06d5e
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. |
||
---|---|---|
.. | ||
active_support | ||
active_support.rb |