Bug 82613

Summary: String: Subscript operator shouldn't force conversion to 16-bit characters.
Product: WebKit Reporter: Andreas Kling <kling>
Component: Web Template FrameworkAssignee: Andreas Kling <kling>
Status: RESOLVED FIXED    
Severity: Normal CC: msaboff, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Proposed patch none

Description Andreas Kling 2012-03-29 07:27:11 PDT
Using the subscript operator ([]) on a WTF::String currently forces the string to convert itself to 16-bit if it's 8-bit internally.
If we avoid this, we can save quite a bit of memory for the cases where this is the only thing triggering the conversion.
Comment 1 Andreas Kling 2012-03-29 07:49:12 PDT
Created attachment 134582 [details]
Proposed patch
Comment 2 WebKit Review Bot 2012-03-29 10:04:17 PDT
Comment on attachment 134582 [details]
Proposed patch

Clearing flags on attachment: 134582

Committed r112543: <http://trac.webkit.org/changeset/112543>
Comment 3 WebKit Review Bot 2012-03-29 10:04:22 PDT
All reviewed patches have been landed.  Closing bug.