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:
parent
fdefc5860b
commit
e162c59160
2 changed files with 26 additions and 14 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue