#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

#14 in #compressor

Download history 1/week @ 2024-10-09 1/week @ 2024-10-16 1/week @ 2024-10-30 1/week @ 2024-11-06 92/week @ 2024-11-20 57/week @ 2024-11-27 2/week @ 2024-12-04 12/week @ 2024-12-11

595 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
~208K SLoC