[Webkit-unassigned] [Bug 41920] Avoid slow-path for put() in Array.splice()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 9 07:58:59 PDT 2010


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





--- Comment #3 from Caio Marcelo de Oliveira Filho <caio.oliveira at openbossa.org>  2010-07-09 07:58:59 PST ---
(In reply to comment #2)
> We should add a function to create a new array that will actually allocate sufficient space for the result as we know we will be producing a compact array of this size (...)

Oliver, why isn't enough to use the constructEmptyArray() variant that takes the initial length (the one the patch uses)? It preallocates for cases with size up to MIN_SPARE_ARRAY_INDEX (which is 10k).

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