perf: reduce memory usage by dropping ustr dependency

The string cache used by ustr pre-allocates 12 MB, even if we're
only using it for a few font family names. We can therefore
manage our own set of leaked strings to reduce memory usage by 12 MB.
This commit is contained in:
Michael Aaron Murphy 2025-01-03 21:56:27 +01:00
parent fdefc5860b
commit e162c59160
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
2 changed files with 26 additions and 14 deletions

View file

@ -114,7 +114,6 @@ tokio = { version = "1.24.2", optional = true }
tracing = "0.1.41"
unicode-segmentation = "1.6"
url = "2.4.0"
ustr = { version = "1.0.0", features = ["serde"] }
zbus = { version = "4.2.1", default-features = false, optional = true }
[target.'cfg(unix)'.dependencies]