Skip to content

perf: Speed up cluster zoom transition#1381

Merged
manthey merged 1 commit intomasterfrom
speed-up-cluster-transition
Jul 9, 2025
Merged

perf: Speed up cluster zoom transition#1381
manthey merged 1 commit intomasterfrom
speed-up-cluster-transition

Conversation

@manthey
Copy link
Copy Markdown
Contributor

@manthey manthey commented Jul 8, 2025

In a test of 1.3M points, this saves 500-700 ms per zoom transition in one test. The clustering took a maximum of 94ms for the zoom transition; the remaining time is in the webGL point transformation and property fetches. The next improvement would be to cache those values per zoom level.

@manthey
Copy link
Copy Markdown
Contributor Author

manthey commented Jul 8, 2025

@annehaley This change helps, but at high zoom levels with a lot of points we are still needlessly recomputing some things.

In a test of 1.3M points, this saves 500-700 ms per zoom transition in
one test.  The clustering took a maximum of 94ms for the zoom
transition; the remaining time is in the webGL point transformation and
property fetches.  The next improvement would be to cache those values
per zoom level.
@manthey manthey force-pushed the speed-up-cluster-transition branch from 07fd746 to 5c5b020 Compare July 8, 2025 21:08
@manthey manthey merged commit c16ea3d into master Jul 9, 2025
12 checks passed
@manthey manthey deleted the speed-up-cluster-transition branch July 9, 2025 12:16
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jul 9, 2025

🎉 This PR is included in version 1.14.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant