Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[core] Add more cache management APIs #14925

Merged
merged 6 commits into from
Jun 18, 2019
Merged

Conversation

tmpsantos
Copy link
Contributor

  • 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.

Copy link
Contributor

@julianrex julianrex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@tmpsantos tmpsantos self-assigned this Jun 14, 2019
@tmpsantos tmpsantos force-pushed the tmpsantos-cache_resize branch 3 times, most recently from 551699c to e3fdc03 Compare June 17, 2019 17:39
Copy link
Contributor

@alexshalamov alexshalamov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

few nits

benchmark/storage/offline_database.benchmark.cpp Outdated Show resolved Hide resolved
platform/default/src/mbgl/storage/default_file_source.cpp Outdated Show resolved Hide resolved
platform/default/src/mbgl/storage/default_file_source.cpp Outdated Show resolved Hide resolved
platform/default/src/mbgl/storage/default_file_source.cpp Outdated Show resolved Hide resolved
platform/default/src/mbgl/storage/offline_database.cpp Outdated Show resolved Hide resolved
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.
- 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.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants