Possible optimization in v2 branch
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 32/100
- Issue type
- Refactor
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- cpp
- Domain
- performance
Research direction
Start in include/mapbox/vector_tile/handlers.hpp, focusing on the geometry decoding path described in the issue. Compare representative single and multi-geometry cases and measure whether the temporary multi-geometry allocation affects performance. Done means a measured optimization is identified or ruled out without changing decoding behavior.
Written by the indexing model from the issue text.
Description
The geometry decoding in https://github.com/mapbox/vector-tile/blob/2.x/include/mapbox/vector_tile/handlers.hpp works by first creating "multi" geometries of the given type. If later the geometry turns out to only contain a single point, linestring, or polygon, the first geometry of the "multi" is returned. In practice most geometries are probably not multi, so creating this extra indirection (which internally is a std::vector) and then discarding it could have measurble performance impact.
- Dominant language
- C++
- Stars
- 52
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
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.
More from mapbox/vector-tile
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
mapbox/vector-tile#46 · 4 comments · 4 reactions ·
-
1.x
Difficulty 4/5 3-5 days Newbie friendliness 25/100
mapbox/vector-tile#45 · 5 comments ·
-
2.x
Difficulty 5/5 Over a week Newbie friendliness 20/100
mapbox/vector-tile#43 ·
-
2.x
Difficulty 5/5 Over a week Newbie friendliness 30/100
mapbox/vector-tile#42 ·
-
Add Overzooming Open2.x
Difficulty 5/5 Over a week Newbie friendliness 25/100
mapbox/vector-tile#41 ·
All issues in mapbox/vector-tile
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·