Drop ShapePlanCache

The ShapePlanCache was added to improve performance when shaping the same
strings over and over. However, it never had the ability to be trimmed
and when it was moved to FontSystem, this created a permanently growing
allocation. It is recommended to instead use the shape-run-cache feature
which supports trimming if it is desired to have higher performance for
repeated shaping, at the cost of manually specifying when to trim.
This commit is contained in:
Jeremy Soller 2024-11-06 18:59:56 -07:00
parent 4fe90bb612
commit 1f4065c1c3
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
5 changed files with 40 additions and 112 deletions

View file

@ -132,9 +132,6 @@ mod line_ending;
pub use self::shape::*;
mod shape;
use self::shape_plan_cache::*;
mod shape_plan_cache;
pub use self::shape_run_cache::*;
mod shape_run_cache;