[Webkit-unassigned] [Bug 25779] Allow Strings to be created with one malloc node with no copying

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 18 09:41:27 PDT 2009


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





------- Comment #11 from darin at apple.com  2009-05-18 09:41 PDT -------
I have a few other thoughts about Vector::adopt call sites:

    1) In cases where the string is built up incrementally and often ends up
quite large, a Vector and adopt is probably still a good idea.

    2) In cases where the string is small, we may want to copy the string and
avoid keeping around two memory blocks, even if we are in the Vector adopt
call.

    3) In some cases where we build up the string incrementally and it usually
stays small, we could consider using Vector<UChar, 32> (or some suitable size)
and making an adopt function that understands how to create a string two
different ways depending on whether the inline storage was used or not.

A useful statistic would be how many single-block strings vs. double-block
strings are allocated during a page load.


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



More information about the webkit-unassigned mailing list