Bug 22170

Summary: Make Vector::clear() release the Vector's memory (1MB savings on membuster)
Product: WebKit Reporter: Maciej Stachowiak <mjs>
Component: Web Template FrameworkAssignee: Maciej Stachowiak <mjs>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Attachments:
Description Flags
patch to really really clear vectors koivisto: review+

Maciej Stachowiak
Reported 2008-11-10 19:41:24 PST
Many parts of WebKit assume that after calling clear() on a WTF::Vector, the memory is returned. But it isn't. Fulfilling this assumption saves 1MB on the Mozilla membuster test.
Attachments
patch to really really clear vectors (2.38 KB, patch)
2008-11-10 19:44 PST, Maciej Stachowiak
koivisto: review+
Maciej Stachowiak
Comment 1 2008-11-10 19:44:20 PST
Created attachment 25041 [details] patch to really really clear vectors
Note You need to log in before you can comment on or make changes to this bug.