Are UTF8-backed (as opposed to Latin1-backed) JS strings with random access
going to be a real possibility in SpiderMonkey? It’s obviously possible to
make random access work with an appropriate indexing data structure, but
popular JS benchmarks are pretty sensitive to string performance.
Another option we've just been discussing is to lazily compute a flag on the
string indicating contents are 7-bit ascii that allowed us to use array
indexing. I'd expect this to often be true. There are also many cases where
we'd eagerly have this flag (atoms produced during parsing, strings
2 matches
Mail list logo