Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[image] ImageCache improvements #1419

Merged
merged 4 commits into from
Jun 5, 2023
Merged

Conversation

mugulmd
Copy link
Contributor

@mugulmd mugulmd commented Apr 18, 2023

Description

The goal of this PR is to refine the image caching system previously introduces by adding new functionnalities and improving code quality.

Features list

  • new contains method for checking if a given image is in the cache (without affecting LRU ordering)
  • new cachedOnly flag to retrieve an image only if it is in the cache (i.e no image will be loaded from disk)
  • new lazyCleaning flag to enable/disable lazy cleaning (= cleaning large images in priority instead of respecting LRU ordering)
  • bug fix related to the missingCapacity computation

@mugulmd mugulmd self-assigned this Apr 18, 2023
@mugulmd mugulmd force-pushed the mug/imageCaching/improvements1 branch from 10cf378 to b9ec481 Compare April 25, 2023 15:42
@mugulmd mugulmd marked this pull request as ready for review April 25, 2023 16:50
@mugulmd mugulmd added this to the 3.1.0 milestone Apr 28, 2023
@mugulmd mugulmd force-pushed the mug/imageCaching/improvements1 branch from b9ec481 to 2062ca7 Compare May 30, 2023 12:39
@fabiencastan fabiencastan merged commit 2ba55b3 into develop Jun 5, 2023
@fabiencastan fabiencastan deleted the mug/imageCaching/improvements1 branch June 5, 2023 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants