[Webkit-unassigned] [Bug 66286] Use String [] operator instead of indexing into String::characters() directly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 18 21:46:10 PDT 2011


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





--- Comment #21 from Xianzhu Wang <wangxianzhu at chromium.org>  2011-08-18 21:46:08 PST ---
(In reply to comment #20)
> (In reply to comment #13)
> > Now I prefer the StringPtr class method, because it can hide and optimize checking of 8/16 bit like what Geoffrey suggested. The issue does related to this bug.
> 
> Actually, what I suggested was that StringPtr *can't* optimize checking the 8 vs 16 bit flag, because it must do the check on every access.

You are right that there must be some extra cost, but I think with the encapsulation, we could potentially have some optimizations during the life of a StringPtr to keep the extra cost as small as possible.

I'm trying to measure the impact of performance in real applications.

-- 
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