Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix stackOverflow in EntityStore with large XYPlots #3455

Merged

Conversation

zerovox
Copy link
Contributor

@zerovox zerovox commented Mar 28, 2018

When you have a lot of UI elements, this spread (compiled to .push.apply(this._entities, entities)) causes a Maximum Call Stack Exceeded error. Also, .concat is seemingly faster than the .push most of the time: https://jsperf.com/es6-add-element-to-create-new-array-concat-vs-spread-op

Also, when this exception gets throw, the lock is never released somewhere in StackedBar and at that point your chart is hosed.

@themadcreator themadcreator merged commit 1e2aeae into palantir:develop Mar 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants