summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEileen M. Uchitelle <eileencodes@users.noreply.github.com>2021-11-18 16:17:40 -0500
committerGitHub <noreply@github.com>2021-11-18 16:17:40 -0500
commitea02b93bb95a42439631606269659dffc1981883 (patch)
treee160c058568e0de4f74911ba647a9d103a45c9ba /doc
parentab737b19197c63b84dad9944045a2fd2dc369264 (diff)
Refactor setclassvariable (#5143)
We only need the cref when we have a cache miss so don't look it up until we need it. This likely speeds up class variable writes in the interpreter but also simplifies the jit code. Before ``` Warming up -------------------------------------- write a cvar 192.280k i/100ms Calculating ------------------------------------- write a cvar 1.915M (± 3.5%) i/s - 9.614M in 5.026694s ``` After ``` Warming up -------------------------------------- write a cvar 216.308k i/100ms Calculating ------------------------------------- write a cvar 2.140M (± 3.1%) i/s - 10.815M in 5.058079s ``` Followup to ruby/ruby#5137
Notes
Notes: Merged-By: maximecb <maximecb@ruby-lang.org>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions