4 ms·
You're wrong, JS has immutable strings & so VMs use ropes to make mutable usage & slicing fast https://gist.github.com/mraleph/3397008 https://gist.github.com/
by __s 5y ago
You're wrong, JS has immutable strings & so VMs use ropes to make mutable usage & slicing fast
https://gist.github.com/mraleph/3397008 https://gist.github.com/mraleph/3397008
https://twitter.com/rauschma/status/1269964154275799041 https://twitter.com/rauschma/status/1269964154275799041
- peoplefromibiza 5y agothanks my bad, I learned something new. anyway this proves that immutable data structures are not inherently slow, this is infact an optimization that makes things faster.