Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

perf: Define top-level earcut worker pool #954

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

Open
kylebarron wants to merge 4 commits into main
base: main
Choose a base branch
Loading
from kyle/top-level-earcut-pool

Conversation

@kylebarron
Copy link
Member

@kylebarron kylebarron commented Oct 17, 2025
edited
Loading

Change list

  • Define an earcut worker pool once in global scope, and reuse it for any polygon layers
  • This should (significantly?) improve perf for any polygonal layers (though not the h3 layer)
  • Load the worker source as text from the version in node_modules. (earcut.worker.min.js is 15KB, and much easier to not have it be async). This means we don't need any async step, nor do we need to keep the worker source version in sync with our geoarrow-js version in package.json

Depends on geoarrow/geoarrow-js#39

Closes #909

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

Reviewers

No reviews

Assignees

No one assigned

Labels

Projects

None yet

Milestone

0.13

Development

Successfully merging this pull request may close these issues.

Create an earcut worker pool once in global scope; then pass it in to any polygon layers

1 participant

AltStyle によって変換されたページ (->オリジナル) /