From 6ae2681aa1abc1fa447d64d2a269878e29b1d904 Mon Sep 17 00:00:00 2001 From: memdmp Date: Sun, 25 Jan 2026 16:31:33 +0100 Subject: feat: paralllelism, memory overcommitment to save on repeated mallocs --- Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 41d2cf0..97dafb1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,7 @@ version = "0.1.0" edition = "2021" [dependencies] +rayon = "1.11.0" resvg = "0.44.0" serde = { version = "1.0.216", features = ["derive"] } serde_json = "1.0.133" @@ -14,3 +15,9 @@ usvg = "0.44.0" lto = "fat" codegen-units = 1 strip = "symbols" + +[features] +default = ["overalloc"] + +# Potentially over-allocate xcursor vectors to gain performance +overalloc = [] -- cgit v1.2.3