Pass Feature state to workers for initial tile evaluation
Open
@mourner is already working on this.
Since Oct 22, 2018.
performance :zap:
refactoring :building_construction:
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
#7097 reports multiple warnings while evaluating tiles with styles using`feature-state` expressions. Initial tile parsing is done without access to the feature state and this requires evaluating expressions once again and updating paint buffers when the tile is being prepared for rendering on the main thread.
This increases the TTFR when using `setFeatureState` and `feature-state` expressions on large data sets.
Example: https://bl.ocks.org/ryanbaumann/733ba99c5ca1d9d15259081b395e4b00/414e974f854c20c263edddc6c9cc934d0956a9ac
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.