Pull requests perf: optimize non-critical deps for size
Add profile.release.package overrides with opt-level="s" for
dependencies that are not performance-critical:
- annotate-snippets (diagnostics rendering)
- clap, clap_builder (CLI parsing)
- num-bigint (literal parsing)
- regex, regex-automata, regex-syntax
- serde_json (JSON output)
- tracing-subscriber (logging)
Results (testdata/*.sol -j1):
- Binary size: 4.1 MiB → 3.5 MiB (-15%)
- Parse time: 57.5 ms → 56.6 ms (~2% faster, within noise)
Amp-Thread-ID: https://ampcode.com/threads/T-019bfc64-1bce-774c-b280-2b7c98f2d008
Co-authored-by: Amp <amp@ampcode.com> CodSpeed Performance Gauge 0%
perf: use thin LTO for dist profile
Benchmarks on testdata/*.sol show no meaningful difference between fat and
thin LTO, while thin LTO compiles faster.
Results (hyperfine, 2 runs averaged):
| LTO Type | -j1 (single-threaded) | default (parallel) |
|----------|----------------------|-------------------|
| fat | ~114 ms | ~92 ms |
| thin | ~112 ms | ~92 ms |
Binary size unchanged at 7.2M.
Amp-Thread-ID: https://ampcode.com/threads/T-019bfc41-7890-741b-a1af-a872ce7b964c
Co-authored-by: Amp <amp@ampcode.com> CodSpeed Performance Gauge 0%
CodSpeed Performance Gauge 0%
chore(deps): weekly `cargo update`
Locking 19 packages to latest compatible versions
Updating bon v3.8.1 -> v3.8.2
Updating bon-macros v3.8.1 -> v3.8.2
Updating cc v1.2.53 -> v1.2.54
Updating codspeed v4.2.1 -> v4.3.0
Updating codspeed-criterion-compat v4.2.1 -> v4.3.0
Updating codspeed-criterion-compat-walltime v4.2.1 -> v4.3.0
Updating darling v0.21.3 -> v0.23.0
Updating darling_core v0.21.3 -> v0.23.0
Updating darling_macro v0.21.3 -> v0.23.0
Unchanged generic-array v0.14.7 (available: v0.14.9)
Updating libm v0.2.15 -> v0.2.16
Updating num-conv v0.1.0 -> v0.2.0
Updating proc-macro2 v1.0.105 -> v1.0.106
Updating quote v1.0.43 -> v1.0.44
Unchanged slang_solidity v0.18.3 (available: v1.3.2)
Unchanged solang-parser v0.3.4 (available: v0.3.5)
Updating thiserror v2.0.17 -> v2.0.18
Updating thiserror-impl v2.0.17 -> v2.0.18
Updating time v0.3.45 -> v0.3.46
Updating time-core v0.1.7 -> v0.1.8
Updating time-macros v0.2.25 -> v0.2.26
Unchanged tree-sitter v0.25.8 (available: v0.25.10)
Unchanged tree-sitter-solidity v1.2.12 (available: v1.2.13)
Updating zmij v1.0.15 -> v1.0.16
note: to see how you depend on a package, run `cargo tree --invert <dep>@<ver>` CodSpeed Performance Gauge 0%
© 2026 CodSpeed Technology