-
Notifications
You must be signed in to change notification settings - Fork 71
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
Improve packed_transaction parsing performance #1025
Comments
@heifner in which context can we optimize this. Is it where we parse a single packed_transaction, or do we sometimes parse a bunch of them? |
The interface for multiple trxs is rarely if ever used. I was thinking of the single packed_transaction use. |
Is it likely that we would retrieve the same abi repeatedly for a single transaction? |
Yes, mining trxs often have many of the same input actions. |
Thanks. All clear now! |
@heifner , I'm not seeing where it tries to repeatedly retrieve abis when processing packed transactions? |
https://github.com/AntelopeIO/leap/blob/main/plugins/chain_plugin/chain_plugin.cpp#L2189 |
Improve packed_transaction parsing performance
See #999 (comment)
Simple speedup is to create a caching resolver that caches abis as it goes instead of repeatedly retrieving them.
The text was updated successfully, but these errors were encountered: