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

tiny_skia: Add a capacity limit to GlyphCache #2210

Merged
merged 2 commits into from
Feb 7, 2024

Conversation

MoSal
Copy link
Contributor

@MoSal MoSal commented Jan 22, 2024

  • Trim the cache if recently_used size reaches the limit, even if a trim interval hasn't passed.
  • Shrink entries and recently_used to the limit when trimming.

@MoSal
Copy link
Contributor Author

MoSal commented Jan 31, 2024

Reformatted.

@hecrj hecrj added this to the 0.12 milestone Feb 7, 2024
 * Trim the cache if `recently_used` size reaches the limit, even if a
   trim interval hasn't passed.
 * Shrink `entries` and `recently_used` to the limit when trimming.

Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

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

Looks reasonable! Thanks! 🙇

@hecrj hecrj enabled auto-merge February 7, 2024 13:29
@hecrj hecrj merged commit b4dcf4e into iced-rs:master Feb 7, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants