Moving V8 to only flat strings
docs.google.com·11h·
Discuss: Hacker News
Flag this post

Getting rid of cons strings

By Erik Corry (ecorry@cloudflare.com, erikcorry@chromium.org), November 2025.

Overview

Cons strings are used to implement string addition in V8, and they are remarkably efficient.The creation of a single object is very rapid, and the scavenge-based new space is very efficient at both allocation and collection of dead objects. At first use, the string is lazily flattened (see below).

However the complexi…

Similar Posts

Loading similar posts...