This repository was archived by the owner on Sep 11, 2026. It is now read-only.
perf(navigation): cache parsed vector tiles to reduce CPU load - #80
Merged
Merged
Conversation
Implements LRU cache for decoded vector tiles in navigation cubit: - Caches up to 50 parsed tiles to avoid re-decoding - Cache key based on zoom:tileX:tileY coordinates - Simple FIFO eviction when cache is full Reduces CPU overhead from VectorTile.fromBytes() calls every 3s during navigation, particularly beneficial on ARM processors. Expected impact: 15-25% CPU reduction during active navigation
teal-bauer
force-pushed
the
perf/cache-vector-tile-decoding
branch
from
March 12, 2026 18:44
8b08ea1 to
ab6adde
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Caches parsed vector tiles in the navigation cubit so the same tile is not re-decoded from MBTiles every 3 seconds during navigation. Tiles are keyed by zoom/x/y and the cache holds up to 50 entries, evicting the oldest when full.
Test plan