From 9bdd9eb5442bbdeefa08ea60fd966c8f9a83c543 Mon Sep 17 00:00:00 2001 From: u <@> Date: Wed, 11 Mar 2026 06:19:08 +0200 Subject: drop regex and handroll parser the rustflags change, leaner parser, and dropping the regex crate yields a 4x binary size decrease, i can also see it runs around 2.5x faster --- .cargo/config.toml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .cargo/config.toml (limited to '.cargo') diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..0a977cc --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[target.'cfg(target_family="wasm")'] +rustflags = ["-C", "llvm-args=--mattr=+bulk-memory-opt,+simd128,+relaxed-simd,+tail-call,+extended-const", "-C", "target-feature=+simd128,+relaxed-simd,+tail-call,+extended-const"] -- cgit v1.2.3