favor more string literals for cold call sites
commit544167c5c3aec5993928634c084ae9dd8650be38
authorEric Wong <e@80x24.org>
Tue, 31 Mar 2015 19:18:49 +0000 (31 19:18 +0000)
committerEric Wong <e@80x24.org>
Tue, 7 Apr 2015 07:56:01 +0000 (7 07:56 +0000)
tree48e86d49683bb4ccb3449c3d4279439e090b65a2
parent7d10e85c045a80df260dee1a6717483c5037ef56
favor more string literals for cold call sites

Literal regexps cost over 450 bytes of memory per-site and
unnecessary use of them costs memory in places where raw execution
speed does not matter.  Nowadays, we can rely on String#end_with?
(introduced in 1.8.7) for improved readability, too.
bin/unicorn
bin/unicorn_rails
lib/unicorn/configurator.rb
lib/unicorn/http_server.rb
lib/unicorn/socket_helper.rb