about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-03-14 19:18:55 +0000
committerEric Wong <e@80x24.org>2017-03-14 19:18:55 +0000
commit20c66dbf1ebd0ca993e7a79c9d0d833d747df358 (patch)
tree73cfb72ba379293c29b80d0cf268aa462a06f9ee /test
parent873218e317773462be2a72556d26dc4a723cc7be (diff)
downloadunicorn-20c66dbf1ebd0ca993e7a79c9d0d833d747df358.tar.gz
Unlike constants and instance variables, class variable access
is not optimized in the mainline Ruby VM.  Use a constant
instead, to take advantage of inline constant caching.

This further reduces runtime instruction size by avoiding a
branch by allocating the Raindrops::TCP_Info object up front.

This reduces the method size by roughly 300 bytes on 64-bit.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions