Bug 22170 - Make Vector::clear() release the Vector's memory (1MB savings on membuster)
Summary: Make Vector::clear() release the Vector's memory (1MB savings on membuster)
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Maciej Stachowiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-10 19:41 PST by Maciej Stachowiak
Modified: 2008-11-11 01:24 PST (History)
0 users

See Also:


Attachments
patch to really really clear vectors (2.38 KB, patch)
2008-11-10 19:44 PST, Maciej Stachowiak
koivisto: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Stachowiak 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.
Comment 1 Maciej Stachowiak 2008-11-10 19:44:20 PST
Created attachment 25041 [details]
patch to really really clear vectors