mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
The Counter::name() method creates a new String on every call, each call allocates memory and copies the string. Using %'static str would reduce memory pressure. The change is safe as no breaking changes to the API