erigontech / erigon

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

Clean up and improve our RLP code #11910

Open yperbasis opened 2 months ago

yperbasis commented 2 months 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 2 months ago

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