Ruby 1.9.3+-only cleanups
commita5d88662a519406eea6f180a010af8ef829464e7
authorEric Wong <e@80x24.org>
Sat, 21 Nov 2015 08:52:29 +0000 (21 08:52 +0000)
committerEric Wong <e@80x24.org>
Sat, 21 Nov 2015 08:55:00 +0000 (21 08:55 +0000)
tree77034a0a236921b1ab2c6c237ac92a016de49c10
parent9e7fb4e9b5d97cc75892c8faaea46444d438eb61
Ruby 1.9.3+-only cleanups

unicorn 5 will only support Ruby 1.9.3 and later, so remove
some checks for Hash#compare_by_identity and IO.copy_stream
which we know exist in Ruby 1.9.

Favor &:sym proc dispatch to avoid unnecessary captures and
bytecode size increases, too.

Finally, ensure we fail fast by converting some literal
hashes to use non-arrow syntax for symbolic keys.
bin/rainbows
lib/rainbows.rb
lib/rainbows/configurator.rb
lib/rainbows/coolio.rb
lib/rainbows/coolio/heartbeat.rb
lib/rainbows/epoll/client.rb
lib/rainbows/fiber/base.rb
lib/rainbows/writer_thread_pool.rb
lib/rainbows/xepoll_thread_pool/client.rb
lib/rainbows/xepoll_thread_spawn/client.rb