[Webkit-unassigned] [Bug 15901] New: UString(const UString&, const UString&) mallocs too often

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 8 13:10:06 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=15901

           Summary: UString(const UString&, const UString&) mallocs too
                    often
           Product: WebKit
           Version: 525+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: eric at webkit.org
                CC: mjs at apple.com, darin at apple.com


UString(const UString&, const UString&) mallocs too often  (Or we simply call
it too often)

UString(const UString&, const UString&)-caused fastmalloc's are bubbling up to
the top of some samples.  It's more than 5% of string-validate-input.js
(probably closer to 10 or more % if you count the entire cost of malloc)

I know that DeprecatedString does some smart buffer allocations which include
space for future appends, etc.  I'm not sure if UString already does that.

A smarter solution here which avoided calling fastMalloc more often for string
appends would be a win.


-- 
Configure bugmail: http://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