#evm #compression #abi #ethereum #data #compressor #encoded

calldata-compressor

A Compression algorithm for EVM abi.encoded data, especially for EVM calldata

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

Download history 25/week @ 2024-09-23 2/week @ 2024-10-14 2/week @ 2024-11-04 149/week @ 2024-11-25 14/week @ 2024-12-09

163 downloads per month

Apache-2.0

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

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