reduce constant lookup dependencies
commit70c976bdd85bb8515fea01d6ad6074ef472fc2e0
authorEric Wong <e@80x24.org>
Sat, 14 Nov 2015 02:47:24 +0000 (14 02:47 +0000)
committerEric Wong <e@80x24.org>
Wed, 18 Nov 2015 02:20:25 +0000 (18 02:20 +0000)
tree51230dc24bb183176b932e0d38e181869b5485e7
parent9c9e3949b2ef2f299ff1590d23aa4d053b60a2fd
reduce constant lookup dependencies

Unicorn 5 removes some constants we were using, and constant
lookups + inline caching are waste of time anyways on newer
Rubies with the opt_str_freeze bytecode instruction.

This may reduce performance for folks on older Rubies (probably
not noticeable); but improves performance for folks on newer
Rubies.
17 files changed:
lib/rainbows/const.rb
lib/rainbows/coolio/client.rb
lib/rainbows/coolio/thread_client.rb
lib/rainbows/dev_fd_response.rb
lib/rainbows/epoll/client.rb
lib/rainbows/error.rb
lib/rainbows/ev_core.rb
lib/rainbows/event_machine/client.rb
lib/rainbows/event_machine/try_defer.rb
lib/rainbows/max_body.rb
lib/rainbows/process_client.rb
lib/rainbows/response.rb
lib/rainbows/reverse_proxy.rb
lib/rainbows/reverse_proxy/ev_client.rb
lib/rainbows/sendfile.rb
lib/rainbows/server_token.rb
lib/rainbows/stream_response_epoll.rb