9 releases
0.3.0 | Nov 26, 2024 |
---|---|
0.2.3 | Apr 1, 2024 |
0.2.2 | Feb 29, 2024 |
0.2.1 | Jan 22, 2024 |
0.1.2 | Dec 13, 2023 |
#13 in #compressor
163 downloads per month
36KB
729 lines
calldata-compressor-rs
A Compression algorithm for EVM abi.encoded data, especially for EVM calldata.
This project is a Rust implementation of the Calldata Compressor, based on 1inch/calldata-compressor
Features
- Adhere to Rust API Guidelines
Test & Benchmark
Test
cargo nextest run -r
Benchmarks
# valgrind check
cargo valgrind test
valgrind --tool=dhat ./target/debug/deps/calldata_compressor-92413ab13fccdd8f
# generate flamegraph
cargo flamegraph --unit-test -- test_compress_big
Dependencies
~11MB
~209K SLoC