Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add a simple cache for read tile data from vtpk data sources
The process of reading raw tile data from a vtpk comes with some cost due to the necessary unzipping of files from the vtpk archive. We can cut out this cost for previously retrieved tiles through a simple tile -> raw data cache. The guts of the caching sits in the generic vector tile data provider class so it could be potentially used by other vector tile sources, but profiling reveals that there's not a significant cost associated with retrieving raw tile data for our other existing VT providers.
- Loading branch information
1 parent
80062ab
commit c19c442
Showing
3 changed files
with
84 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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