mapbox / mapbox/vt-pbf

prepareLayer is slow when there are lots of properties

Open
#3 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
206
Forks
38
PR merge metrics
No merged PRs in 30d

Description

prepareLayer's self time is not great, and it's because of https://github.com/anandthakker/vt-pbf/blob/master/index.js#L63-L80. I guess it's time to look into the performance of objects-as-maps

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read index.js lines 63-80 and profile prepareLayer with layers containing many properties, focusing on the objects-as-maps work identified in the issue. Done means demonstrating improved prepareLayer self time for that workload while preserving serialization behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.