Skip to content

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

Merged
mourner merged 1 commit into
masterfrom
upgrade-pbf-3.2.1
Oct 11, 2019
Merged

mourner merged 1 commit into
masterfrom
upgrade-pbf-3.2.1

Conversation

@mourner

@mourner mourner commented Oct 11, 2019

Copy link
Copy Markdown
Member

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

@asheemmamoowala asheemmamoowala left a comment

Copy link
Copy Markdown
Contributor

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

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