-
Notifications
You must be signed in to change notification settings - Fork 971
refactor!: flatten Bytecode #3375
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
base: main
Are you sure you want to change the base?
Conversation
Amp-Thread-ID: https://ampcode.com/threads/T-019c0c85-669b-7035-bdbd-497f1871af9f Co-authored-by: Amp <[email protected]>
…le, hash Amp-Thread-ID: https://ampcode.com/threads/T-019c0c85-669b-7035-bdbd-497f1871af9f Co-authored-by: Amp <[email protected]>
- Keep only constants and error types in eip7702.rs - Remove legacy/analyzed.rs and legacy/raw.rs - Move tests to bytecode.rs - Keep BytecodeInner private, only expose BytecodeKind Amp-Thread-ID: https://ampcode.com/threads/T-019c0c85-669b-7035-bdbd-497f1871af9f Co-authored-by: Amp <[email protected]>
Merging this PR will improve performance by 8.03%
Performance Changes
Comparing |
mattsse
left a comment
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.
before we merge any of this I want tests on reth that this doesnt break encoding (again)
meaning that this encodes/decodes the bytecode exactly the same
|
what is it used in? |
|
shouldn't be affected |
Co-authored-by: Amp <[email protected]> Amp-Thread-ID: https://ampcode.com/threads/T-019c0c85-669b-7035-bdbd-497f1871af9f
58bdbf3 to
10aa414
Compare
Bytecode is now a single struct, with a single enum BytecodeKind for legacy and eip7702