[Webkit-unassigned] [Bug 86281] 59% of Vector buffer capacity is unused

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 11 21:47:00 PDT 2012


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





--- Comment #8 from Andreas Kling <kling at webkit.org>  2012-05-11 21:46:04 PST ---
(In reply to comment #5)
> Andreas: isn't that what inline capacity does, basically?

Kind of. Vector is currently { capacity, size, buffer }, and the new approach would allow us to eliminate 'capacity' from these structures and pack 'buffer' tightly with no overhead when there's no mutation.

Also, another thing that we should probably do is turn Vector's capacity and size into 32-bit unsigned integers. I don't think there's a good reason for them to be size_t, and this would save us 8 bytes per Vector on 64-bit.

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