diff options
| author | Hoa Nguyen <nvh0412@gmail.com> | 2025-10-07 03:01:12 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-06 09:01:12 -0700 |
| commit | 7333a2710e502be1c70374d4bb5b0247a4a5a5e6 (patch) | |
| tree | 4bae59c704656e8302a674622e735794d179119d /include/ruby/internal | |
| parent | f3020d7be389d411506d1d24f985ddac4c9a5a76 (diff) | |
ZJIT: reduce string allocation in the Counter::name() (#14743)
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
Diffstat (limited to 'include/ruby/internal')
0 files changed, 0 insertions, 0 deletions
