7 ms·
Before the release of 2.1.0, funny_falcon, samsaffron and I developed a patch that removes the global method cache in favor of a local method cache inside each
by tmm1 12y ago
Before the release of 2.1.0, funny_falcon, samsaffron and I developed a patch that removes the global method cache in favor of a local method cache inside each class. (This was originally proposed for upstream inclusion in https://bugs.ruby-lang.org/issues/9262 https://bugs.ruby-lang.org/issues/9262).
The patch has been running in production on GitHub's servers for over a year, and provides the benefits of a high cache-hit rate without the need for manual tuning. I recently ported this patch to ruby 2.2 as well and it is available in this squashed commit: https://github.com/github/ruby/commit/bd002fc9fc3c7236395df29955984b20188eed06 https://github.com/github/ruby/commit/bd002fc9fc3c7236395df2...
- pkmiec 12y agoI originally read about this patch here, http://samsaffron.com/archive/2014/04/08/ruby-2-1-garbage-collection-ready-for-production http://samsaffron.com/archive/2014/04/08/ruby-2-1-garbage-co.... There hasn't been any activity on the upstream proposal for almost a year. Has the core team rejected the idea or is there still hope it will make it into a future version?