reduce method calls with String#start_with?
commitcb1337800dfaeaa0134e8c2a40815fd9174bf55a
authorEric Wong <e@80x24.org>
Sat, 8 Apr 2017 22:48:44 +0000 (8 22:48 +0000)
committerEric Wong <e@80x24.org>
Sat, 8 Apr 2017 22:48:44 +0000 (8 22:48 +0000)
tree9a7f5184ed77b82f0dc8dff7124b1b73c5c05e36
parent288b97bff81b13beba848602929d9254b3b4b150
reduce method calls with String#start_with?

These three cold call sites instruction sequence size by a few
hundred bytes combined since we no longer support Ruby 1.8.6.
The "?/" shorthand is esoteric and no longer avoids allocation
in Ruby 1.9+ (not that this is hot code).
lib/unicorn/configurator.rb
lib/unicorn/http_server.rb
lib/unicorn/socket_helper.rb