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

Move abi serialization of transaction trace off main thread #999

Merged
merged 21 commits into from
Apr 13, 2023

Conversation

greg7mdp
Copy link
Contributor

@greg7mdp greg7mdp commented Apr 10, 2023

Resolves #698.

Similar to #696, move transaction trace conversion to exploded fc::variant via abi_serializer off the main thread.

Although, the performance impact will not be as great as #696, it is likely still worth doing.

chain_plugin APIs updated:

  • send_transaction
  • send_transaction2
  • compute_transaction
  • send_read_only_transaction
  • update get_block to use common architecture
  • merge all 4 versions of send_transaction above to use one common implementation.

I will have a further PR optimizing the conversion to fc::variant by avoiding unnecessary copies of abi_serializer (changes will be in abi_serializer.hpp).

libraries/chain/include/eosio/chain/abi_serializer.hpp Outdated Show resolved Hide resolved
libraries/chain/include/eosio/chain/abi_serializer.hpp Outdated Show resolved Hide resolved
plugins/chain_plugin/chain_plugin.cpp Outdated Show resolved Hide resolved
plugins/chain_plugin/chain_plugin.cpp Outdated Show resolved Hide resolved
libraries/chain/include/eosio/chain/exceptions.hpp Outdated Show resolved Hide resolved
plugins/chain_plugin/chain_plugin.cpp Outdated Show resolved Hide resolved
plugins/chain_plugin/chain_plugin.cpp Outdated Show resolved Hide resolved
plugins/http_plugin/include/eosio/http_plugin/macros.hpp Outdated Show resolved Hide resolved
@stephenpdeos stephenpdeos added this to the Leap v5.0.0-rc1 milestone Apr 12, 2023
plugins/chain_plugin/chain_plugin.cpp Outdated Show resolved Hide resolved
plugins/chain_plugin/chain_plugin.cpp Outdated Show resolved Hide resolved
plugins/chain_plugin/chain_plugin.cpp Outdated Show resolved Hide resolved
plugins/http_plugin/include/eosio/http_plugin/macros.hpp Outdated Show resolved Hide resolved
@greg7mdp greg7mdp merged commit 3b2f665 into main Apr 13, 2023
@greg7mdp greg7mdp deleted the gh-698-part2 branch April 13, 2023 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Move abi serialization of transaction trace off main thread
4 participants