top | item 47201143

(no title)

paulddraper | 1 day 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.

discuss

order

conartist6|19 hours ago

Code 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.