[Webkit-unassigned] [Bug 40970] JSArrary can use the 'length' property as a storage size hint

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 29 10:22:40 PDT 2010


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





--- Comment #8 from Geoffrey Garen <ggaren at apple.com>  2010-06-29 10:22:40 PST ---
> > It would also be nice if JSArray could allocate spare storage larger than MIN_SPARSE_ARRAY_INDEX, at least for a few arrays, reclaiming wasted / fragmented space as needed.
> 
> You mean allowing a larger vector (when e.g. it was explicitly asked) even if it doesn't satisfy the minimum threshold that today's code use?

...even if it exceeds the maximum threshold.

> If so, when the reclaim could take place?

Probably at GC time. Maybe on a round-robin basis as new Array buffers are allocated.

> "Operational" question: should this bug be marked as WONTFIX or RESOLVED and another one created for the "use 'length' as storage size hint"?

Probably WONTFIX, with a new bug for using "length" as a storage hint, and another bug for using storage hints more aggressively.

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