Actions
Bug #9079
closedInterpolated Symbol creates unnecessary intermediate String on the heap
Description
This case:
x = "world"
y = :"hello#{world}!"
allocates one T_STRING according to ObjectSpace.count_objects. Since all of the concatenation happens as part of the symbol generation, it shouldn't be necessary to create a Ruby string.
Actions
Like0
Like0Like0Like0Like0