Skip to content

Conversation

@kylebarron
Copy link
Member

@kylebarron kylebarron commented Oct 17, 2025

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

@github-actions github-actions bot added the perf label Oct 17, 2025
@kylebarron kylebarron added this to the 0.13 milestone Oct 22, 2025
@kylebarron kylebarron enabled auto-merge (squash) October 27, 2025 23:18
@kylebarron kylebarron merged commit 731e731 into main Oct 27, 2025
6 checks passed
@kylebarron kylebarron deleted the kyle/top-level-earcut-pool branch October 27, 2025 23:19
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.

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

2 participants