Actions
Bug #9159
closed[patch] use rb_fstring for internal strings
Description
I added rb_fstring wrappers around internal strings generated by iseqs, regexps and eval:
https://github.com/tmm1/ruby/commit/9587fae171835ccf013661ba837f097754f170ef
In our rails app, this reduces the number of long-lived strings on the heap by 30%.
$ ruby -rconfig/environment -e' GC.start; p ObjectSpace.count_objects[:T_STRING] '
246100
$ ruby -rconfig/environment -e' GC.start; p ObjectSpace.count_objects[:T_STRING] '
173956
If this patch is acceptable, I can commit it. make test and test-all pass.
Actions
Like0
Like0Like0Like0Like0Like0