diff options
| author | Sean Griffin <sean@thoughtbot.com> | 2015-09-02 10:39:29 -0600 |
|---|---|---|
| committer | Sean Griffin <sean@thoughtbot.com> | 2015-09-02 10:40:27 -0600 |
| commit | 3dd7cecfe30c425052d6414301ea1c8295c58c26 (patch) | |
| tree | 7177d5d8825fa897694070d5f1030bca849b052f /activemodel/lib/active_model/model.rb | |
| parent | aa3acf85cbb6bbb54c345f4cce6ab9d48d882022 (diff) | |
| download | rails-3dd7cecfe30c425052d6414301ea1c8295c58c26.tar.gz rails-3dd7cecfe30c425052d6414301ea1c8295c58c26.tar.bz2 rails-3dd7cecfe30c425052d6414301ea1c8295c58c26.zip | |
Don't allocate a bunch of strings in `Relation::Merger`
Since the strings are dynamically computed from a constant, the actual
strings we're creating are a known set. We can compute them ahead of
time, and reduce the number of allocations in that method.
Diffstat (limited to 'activemodel/lib/active_model/model.rb')
0 files changed, 0 insertions, 0 deletions
