Avoid freezing objects that don't benefit from it
commit04c7fc37ab4fb2fbaa1b4a2570871713cf9d1319
authorEric Wong <normalperson@yhbt.net>
Wed, 16 Sep 2009 23:56:22 +0000 (16 16:56 -0700)
committerEric Wong <normalperson@yhbt.net>
Wed, 16 Sep 2009 23:56:22 +0000 (16 16:56 -0700)
tree5a4baecb4b9ee95dd7ca7970141ffe48168e61a2
parent045f6d741020d4a77bd68bd80891a97782d54850
Avoid freezing objects that don't benefit from it

This gives applications more rope to play with in case they have
any reasons for changing some values of the default constants.

Freezing strings for Hash assignments still speeds up MRI, so
we'll keep on doing that for now (and as long as MRI supports
frozen strings, I expect them to always be faster for Hashes
though I'd be very happy to be proven wrong...)
lib/unicorn.rb
lib/unicorn/app/exec_cgi.rb
lib/unicorn/app/old_rails/static.rb
lib/unicorn/cgi_wrapper.rb
lib/unicorn/const.rb
lib/unicorn/http_request.rb
lib/unicorn/http_response.rb