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

Upgrade pbf to v3.2.1 to fix memory leak with long strings in VT #8863

Merged
merged 1 commit into from
Oct 11, 2019

Conversation

mourner
Copy link
Member

@mourner mourner commented Oct 11, 2019

Closes #8471. Fixes a huge memory leak with large vector tiles that contain long strings in feature properties. The actual change is in mapbox/pbf#109.

Without this PR, when you zoom and hover over features in this JSBin test case, memory quickly grows to gigabytes for each thread in both Chrome and Firefox. After the patch, memory stays neatly below 20MB per thread.

Fixes a memory leak when loading large vector tiles with long strings
Copy link
Contributor

@asheemmamoowala asheemmamoowala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@mourner mourner merged commit 5ed11b1 into master Oct 11, 2019
@mourner mourner deleted the upgrade-pbf-3.2.1 branch October 11, 2019 19:21
@schlosna
Copy link

Excellent! Any chance you might cut another release soon with this included as this didn’t seem to make it in before v1.4.1 released yesterday. Thanks!

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.

High memory usage on mouse enter event in vector tile layer
3 participants