Significant performance issues when freezing and iterating over a large frozen array
Reported by
yuval.gi...@gmail.com,
May 13 2016
|
|||||||
Issue description
Chrome Version : 50.0.2661.94 (Official Build) m (32-bit)
URLs (if applicable) :
Other browsers tested:
Add OK or FAIL, along with the version, after other browsers where you
have tested this issue:
Safari:
Firefox:
IE:
What steps will reproduce the problem?
(1) Create a large array
(2) Freeze the array
(3) Iterate over the frozen array
What is the expected result?
The array freeze operation should be nearly instantenous. The iteration over the frozen array should take roughly same amount of time as the iteration over regular (non-frozen) array.
What happens instead?
The array freeze operation takes significant amount of time (seconds), and increases as the array size is increased.
The iteration over the frozen array is approx. 10x slower than the iteration over the same array when non-frozen.
Please provide any additional information below. Attach a screenshot if
possible.
See attached test file and benchmark screenshots.
,
May 26 2016
,
May 30 2016
,
Jun 2 2016
,
Apr 27 2017
,
Apr 30 2018
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
May 1 2018
Yes, the problem still exists. When re-testing on latest official chrome build, version 66.0.3359.139 (64-bit), I'm getting better results than before but still: - The array freeze operation takes too long and is not instantaneous as expected. - The iteration over a frozen array is 3x slower than iteration over the same array when unfrozen. See attached screenshot, using the same test-array-freeze.js script as given above.
,
May 3 2018
|
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by kavvaru@chromium.org
, May 20 2016Labels: Te-NeedsFurtherTriage