Add shape-run-cache feature, that can significantly improve shaping performance

This commit is contained in:
Jeremy Soller 2024-02-08 11:12:41 -07:00
parent 990d66ed41
commit 1eb3233373
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
7 changed files with 134 additions and 2 deletions

View file

@ -36,7 +36,9 @@ features = ["hardcoded-data"]
[features]
default = ["std", "swash", "fontconfig"]
fontconfig = ["fontdb/fontconfig", "std"]
no_std = ["rustybuzz/libm", "hashbrown"]
shape-run-cache = []
std = [
"fontdb/memmap",
"fontdb/std",
@ -47,7 +49,6 @@ std = [
vi = ["modit", "syntect", "cosmic_undo_2"]
wasm-web = ["sys-locale?/js"]
warn_on_missing_glyphs = []
fontconfig = ["fontdb/fontconfig", "std"]
[[bench]]
name = "layout"