From 70c976bdd85bb8515fea01d6ad6074ef472fc2e0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 14 Nov 2015 02:47:24 +0000 Subject: 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. --- lib/rainbows/const.rb | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib/rainbows/const.rb') diff --git a/lib/rainbows/const.rb b/lib/rainbows/const.rb index 8db95c0..14c7a44 100644 --- a/lib/rainbows/const.rb +++ b/lib/rainbows/const.rb @@ -13,7 +13,4 @@ module Rainbows::Const # if they're the response body. Unset by default. # "rainbows.autochunk" => false, }) - - RACK_INPUT = Unicorn::HttpRequest::RACK_INPUT - REMOTE_ADDR = Unicorn::HttpRequest::REMOTE_ADDR end -- cgit v1.2.3-24-ge0c7