4 ms·
I imagine it's faster during creation because there's fewer allocations for a backing array for the string content (one, basically, unless they move stuff aroun
by vanderZwan 1y ago
I imagine it's faster during creation because there's fewer allocations for a backing array for the string content (one, basically, unless they move stuff around). But then that can also mean holding on to the entire backing array even if only one of the strings is still "alive", unless there are optimizations for reclaiming memory in those situations too.
- monster_truck 1y agoI'm pretty sure turbofan handles this, you might need to do a little hoisting or tagging