New issue
Advanced search Search tips

Issue 611695 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

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.



 
test-array-freeze.js
525 bytes View Download
test-array-freeze.html
95 bytes View Download
test-array-freeze.JPG
90.0 KB View Download
Components: Blink
Labels: Te-NeedsFurtherTriage

Comment 2 by tkent@chromium.org, May 26 2016

Components: -Blink Blink>JavaScript

Comment 3 by danno@chromium.org, May 30 2016

Cc: jochen@chromium.org verwa...@chromium.org
Components: -Blink>JavaScript Blink>JavaScript>Runtime
Labels: -Te-NeedsFurtherTriage Performance
Status: Available (was: Unconfirmed)
Labels: -Performance
Project Member

Comment 6 by sheriffbot@chromium.org, Apr 30 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
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
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.

 
test-array-freeze.jpg
71.5 KB View Download
Status: Available (was: Untriaged)

Sign in to add a comment