[webkit-dev] Feature Announcement: Detection and marking of ascii strings
dcarney at google.com
Mon Jul 30 14:44:09 PDT 2012
When creating String objects, it is for the most part free or
extremely cheap to make the distinction between ascii and latin1 where
the detection of latin1 strings is already taking place. Moreover,
there are bits already available in StringImpl to hold this data,
making storage of it cheap/free, depending on which bit is used.
By knowing when a latin1 string is actually ascii, several
optimizations become available such as memcpy() conversion to utf8 and
regexing on ascii strings.
A meta tracking bug has been created here for comments, etc:
Please let me know if anyone has questions or concerns.
More information about the webkit-dev