8 releases
0.2.3 | Apr 1, 2024 |
---|---|
0.2.2 | Feb 29, 2024 |
0.2.1 | Jan 22, 2024 |
0.1.4 | Jan 22, 2024 |
0.1.2 | Dec 13, 2023 |
#13 in #compressor
38KB
721 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
~27–43MB
~797K SLoC