Closed
Bug 860557
Opened 13 years ago
Closed 10 years ago
Shrink ArrayBuffers
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
INVALID
People
(Reporter: sfink, Unassigned)
Details
Currently, ArrayBuffers are created with kind=FINALIZE_OBJECT16_BACKGROUND, with as many fixed slots as they can. This is both wasteful of space for small buffers, and requires special-casing code to ignore the slot data when looking at it for GC purposes. Arrays use a trick where they report 0 fixed slots, are initially given a shape with FINALIZE_OBJECT0, but then use a different kind when they are created.
Or something like that.
ArrayBuffers probably ought to use the same trick as Arrays, for less special-casing.
| Assignee | ||
Updated•11 years ago
|
Assignee: general → nobody
| Reporter | ||
Comment 1•10 years ago
|
||
The storage for ABs has been redone many times in many ways at this point, and the wasted space is long gone. (Still not as much sharing as I'd like between different object types, but that's for a different bug.)
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•