I have a PR that removes all those constants in rack.rb in favor of string literals:
I also found some places where we should still use `.freeze` in a few cases. There are also some other constants buried around the project, this PR is only the main constants.
Eric & Aaron: on a separate non-rack note, I could use some of your Ruby internals expertise on a performance tuning patch to Sprockets involving `case`. Mostly why is the `case` code not faster than using a hash. Here is the discussion:
https://github.com/rails/sprockets/pull/312#issuecomment-226369234
On May 13, 2016 at 6:41:36 PM, Eric Wong (e@80x24.org) wrote:
Aaron Patterson <tenderlove@ruby-lang.org> wrote:
> Yes please! If you have time. Otherwise I can take care of it.
Much appreciated if you or Richard do; I'm busy with non-Ruby stuff,
but I can help with any VM-related questions you might have.
Thanks.