3 ms·
One object for every UTF-16 code unit. And yes, if that were the sole string interface, things would be very slow. String iterators are relatively less common.
by paulddraper 8mo ago
One object for every UTF-16 code unit.
And yes, if that were the sole string interface, things would be very slow. String iterators are relatively less common.
- conartist6 8mo agoCode unit, yeah. Isn't for/of over an array faster than an indexed loop these days? It's fast because they took the time to optimize it.