[Webkit-unassigned] [Bug 79903] New: WTF: Micro-optimize cleanup of empty vectors and hash tables
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Feb 29 06:59:16 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=79903
Summary: WTF: Micro-optimize cleanup of empty vectors and hash
tables
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptGlue
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: wingo at igalia.com
CC: darin at apple.com, ggaren at apple.com, oliver at apple.com,
barraclough at apple.com
The patch to be attached has the following changelog:
This patch speeds up cleanup of vectors and hash tables whose
backing store was never allocated. This is the case by default
for most vectors / hash tables that never had any entries added.
The result for me is that calling checkSyntax 1000 times on
concat-jquery-mootools-prototype.js goes from 6.234s to 6.068s, a
2.4% speedup.
* wtf/HashTable.h:
(WTF::HashTable::~HashTable):
(WTF::::clear): Don't deallocate the storage or frob member
variables if there is no backing storage.
* wtf/Vector.h:
(WTF::VectorBufferBase::deallocateBuffer): Likewise.
--
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