[Webkit-unassigned] [Bug 16076] DOMParser().parseFromString() freezes safari when parsing large nodes with xml safe characters

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 20 20:14:50 PST 2007


------- Comment #5 from aroben at apple.com  2007-11-20 20:14 PDT -------
(In reply to comment #4)
> A Shark profile shows that > 90% of the time is spent in memcpy.  This appears
> to be due to the naive implementation of StringImpl::append(UChar*, unsigned)
> that allocates and copies on every append rather than growing more gracefully.

While fixing StringImpl::append would be nice, perhaps in this specific case we
could use a Vector<UChar> and String::adopt(), as we do in other places in

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