about summary refs log tree commit homepage
path: root/lib/rainbows/epoll
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-05-09 21:11:39 +0000
committerEric Wong <normalperson@yhbt.net>2012-05-09 21:11:39 +0000
commit604f64f624d562f480dc8424a6597ec5b32947df (patch)
tree03e454eb2a7fa8f637a4ac5c97a58882ec7ccc4c /lib/rainbows/epoll
parent3e61265d4193340721dd53178c43c4fa24debb79 (diff)
downloadrainbows-604f64f624d562f480dc8424a6597ec5b32947df.tar.gz
Array#pop can be significantly faster than Array#shift on large
arrays (especially since we push into the Array).  This is
because Array#shift needs to shift all elements in the array,
and Array#pop only needs to shorten the array by one element.
The Fiber stack may also be hotter in CPU caches when we choose
the most-frequently used stack.
Diffstat (limited to 'lib/rainbows/epoll')
0 files changed, 0 insertions, 0 deletions