erigontech / erigon

Ethereum implementation on the efficiency frontier https://erigon.gitbook.io
GNU Lesser General Public License v3.0
3.14k stars 1.12k forks source link

Clean up and improve our RLP code #11910

Open yperbasis opened 1 month ago

yperbasis commented 1 month ago

Currently our RLP code is a mess. There're the following disparate libraries & approaches:

We should simplify and improve this zoo, perhaps also taking silkworm's RLP code into consideration. If we decide to use low-level hand-written code instead of rlpgen, we should measure performance and do that only in case the performance gain is significant enough to justify the pain of hand-written boilerplate.

Giulio2002 commented 1 month ago

another thing I would like to add is to add the ability to implement reusable buffers