[webkit-dev] When should I use AtomicString vs String?

Darin Adler darin at apple.com
Fri May 31 16:25:54 PDT 2013


On May 31, 2013, at 3:27 PM, Adam Barth <abarth at webkit.org> wrote:

> I believe we store a bit on StringImpl that makes conversion from String and StringImpl to AtomicString fast
> if the underlying StringImpl is already in the AtomicStringTable.

Good point. Converting back to an atomic string costs only a single bit test and branch now; it’s almost free. My mistake.

-- Darin


More information about the webkit-dev mailing list