[Webkit-unassigned] [Bug 92677] [meta] ascii string marking

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 2 10:34:44 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=92677





--- Comment #2 from jochen at chromium.org  2012-08-02 10:34:45 PST ---
(In reply to comment #1)
> What problem is this work meant to fix?

I'm summary (there was a mail to webkit-dev with a longer version):

V8 has several optimizations for ASCII strings, i.e. you can export ascii to utf8 by memcpy (but not latin1), regexp matching is faster, toUpper(ascii) maps to ascii (but toUpper(latin1) does not map to latin1).

Detecting whether a string is ascii at creation time comes at no additional costs compared to detection latin1 which we already do. If we track ascii-ness of strings, we can use those optimizations.

JSC could benefit from this information as well.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list