Summary: | EventListenerMap: Use Vector instead of HashMap as backend. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Andreas Kling <kling> | ||||||
Component: | UI Events | Assignee: | Andreas Kling <kling> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | darin, dglazkov, ggaren, koivisto, laszlo.gombos, rniwa, tonikitoo, webkit.review.bot | ||||||
Priority: | P2 | Keywords: | Performance | ||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Andreas Kling
2012-02-07 06:33:05 PST
Maybe we can use Vector and do the binary search for lookups? Created attachment 162792 [details]
30-day trial version for EWS
Comment on attachment 162792 [details] 30-day trial version for EWS Attachment 162792 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/13793242 New failing tests: inspector/console/command-line-api-getEventListeners.html Created attachment 162996 [details]
Proposed patch
The memory savings here is awesome, so I'm going to say r+. But are we missing the larger lesson here? Why are sparse hash tables so huge? Could we save even more memory by fixing that as well? Comment on attachment 162996 [details]
Proposed patch
r=me
Committed r128002: <http://trac.webkit.org/changeset/128002> |