-
Notifications
You must be signed in to change notification settings - Fork 473
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
Reduce per tx execution allocations #7990
Conversation
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.
We should return RentFrame
too
Are returned when the Frames are unwound: For exception nethermind/src/Nethermind/Nethermind.Evm/VirtualMachine.cs Lines 259 to 261 in 5c5c86e
For success: nethermind/src/Nethermind/Nethermind.Evm/VirtualMachine.cs Lines 326 to 330 in 5c5c86e
|
Co-authored-by: lukasz.rozmej <lukasz.rozmej@gmail.com>
Changes
Saves 8.6MB of allocations per min; reduces worse case from smart contracts that do huge amounts of calls
StackAccessTracker
collectionsEvmState
in
StackAccessTracker
andEvmState
to file level namespacesEvmState is a super chonky class and currently allocated for every tx and every internal call (and this is after shrinking
StackAccessTracker
)Types of changes
What types of changes does your code introduce?
Testing
Requires testing