aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/configuring.md
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-11-20 06:24:50 +0900
committerGitHub <noreply@github.com>2017-11-20 06:24:50 +0900
commiteeaf9cf61c3cd14929583878785c31dab79e2196 (patch)
tree7ab2830102c670ff6f4df0cc700f380c0ce8b5ae /guides/source/configuring.md
parentbc2769774808cbc33b90dc8156ea53542cbde6f6 (diff)
downloadrails-eeaf9cf61c3cd14929583878785c31dab79e2196.tar.gz
rails-eeaf9cf61c3cd14929583878785c31dab79e2196.tar.bz2
rails-eeaf9cf61c3cd14929583878785c31dab79e2196.zip
Prevent extra `spawn` to make `klass.all` faster (#29009)
These extra `spawn` are called via `klass.all` and `klass.all` is called everywhere in the internal. Avoiding the extra `spawn` makes` klass.all` 30% faster for STI classes. https://gist.github.com/kamipo/684d03817a8115848cec8e8b079560b7 ``` Warming up -------------------------------------- fast relation 4.410k i/100ms slow relation 3.334k i/100ms Calculating ------------------------------------- fast relation 47.373k (± 5.2%) i/s - 238.140k in 5.041836s slow relation 35.757k (±15.9%) i/s - 176.702k in 5.104625s Comparison: fast relation: 47373.2 i/s slow relation: 35756.7 i/s - 1.32x slower ```
Diffstat (limited to 'guides/source/configuring.md')
0 files changed, 0 insertions, 0 deletions