Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a size limit to
font_matches_cache
and empty it when it's reached
In `FontSystem`, `font_matches_cache` is an ever growing cache. It can also be a fast growing one in stress tests like running this in `cosmic-term`: mpv -speed 3 -vo tct <some_video> So this commit adds a size limit to that cache, and simply empties it when that limit is reached, which shouldn't be a common occurrence in normal usage. Signed-off-by: Mohammad AlSaleh <[email protected]>
- Loading branch information