[Webkit-unassigned] [Bug 94810] Vector::shrinkToFit should use realloc when canCopyWithMemcpy is true

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 28 12:52:56 PDT 2012


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


Yong Li <yoli at rim.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #161042|                            |review?
               Flag|                            |




--- Comment #21 from Yong Li <yoli at rim.com>  2012-08-28 12:52:58 PST ---
Created an attachment (id=161042)
 --> (https://bugs.webkit.org/attachment.cgi?id=161042&action=review)
Patch

Sorry for keeping changing it... Actually we don't want the 1K threshold. 1) the measurement for small blocks is not stable. It is actually very close as realloc() doesn't nothing but malloc/memcpy/free. 2) if realloc() was slower, it should be fixed and improved anyway.

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