-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce evm-codec package with abi encoding/decoding #258
Conversation
# Conflicts: # common/config/rush/pnpm-lock.yaml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to suggest the following codec structure - https://github.com/subsquid/squid-sdk/tree/evm-utils-feedback/evm/evm-codec-2
It is
- Free from any extra allocations (explicit or implicit)
- Clearly separates tokenisation (
Src
/Sink
) from parsing and walking, making things conceptually simpler.
I haven't tested, but it should be significantly faster, especially for encoding, as Buffer.alloc()
, I believe, is allocated outside of GC managed heap and must do some malloc
style business, which is not nearly as cheep as regular JS allocation.
No description provided.