Skip to content
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

Pre allocate an estimate of List size when initializing it #1394

Open
2 tasks
letypequividelespoubelles opened this issue Oct 9, 2024 · 0 comments
Open
2 tasks
Labels
perf Increase performances

Comments

@letypequividelespoubelles
Copy link
Collaborator

This could have an impact for :

  • for the HUB, when initializing the trace in TxState , we could have an estimate on the number of section the transaction will have, based on the GasLimit of the transaction and real life data. (Remind that number of section is more or less the number of processed opcode)
  • For all other modules, based on StackedSet or StackedList we should have an estimate on the number of moduleOperation at the end of the conflation (for operationsCommitedToTheConflation) and an estimate of number of oduleOperation per transaction (for operationsInTransaction). Currently only RlpTxn and RlpTxrcpt preallocate (200 / 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
perf Increase performances
Projects
None yet
Development

No branches or pull requests

1 participant