UNCONFIRMED 92677
[meta] ascii string marking
https://bugs.webkit.org/show_bug.cgi?id=92677
Summary [meta] ascii string marking
Dan Carney
Reported 2012-07-30 14:15:42 PDT
This metabug is to track work for implementing detection and marking of ascii strings during latin1 string creation. Please add specific implementation bugs that block this.
Attachments
Michael Saboff
Comment 1 2012-08-02 09:09:26 PDT
What problem is this work meant to fix?
jochen
Comment 2 2012-08-02 10:34:45 PDT
(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.
Note You need to log in before you can comment on or make changes to this bug.