This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[core] Add more cache management APIs #14925
Merged
Merged
Conversation
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
Contributor
tmpsantos
commented
Jun 14, 2019
- API for resizing the ambient cache.
- Make it possible to disable the ambient cache.
- Performance benchmarks.
- Fix tile deletion and invalidation not affecting resources that are not tiles.
julianrex
approved these changes
Jun 14, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
tmpsantos
force-pushed
the
tmpsantos-cache_resize
branch
3 times, most recently
from
June 17, 2019 17:39
551699c
to
e3fdc03
Compare
alexshalamov
approved these changes
Jun 17, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
few nits
Avoid confusion about what is being reset. In this case, the whole database and not only the ambient cache.
These methods were only affecting tiles, but they should really work on every resource like style, glyphs, etc.
tmpsantos
force-pushed
the
tmpsantos-cache_resize
branch
from
June 18, 2019 12:30
e3fdc03
to
ef0ef2e
Compare
- Removed this parameter from the constructor, now that we have a method to set it. - Add the method and enforce the limits if the ambient cache exceeds the size.
tmpsantos
force-pushed
the
tmpsantos-cache_resize
branch
from
June 18, 2019 12:59
ef0ef2e
to
42afffb
Compare
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.