Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Net plugin optimizations #6464

Merged
merged 27 commits into from
Dec 14, 2018
Merged

Net plugin optimizations #6464

merged 27 commits into from
Dec 14, 2018

Conversation

heifner
Copy link
Contributor

@heifner heifner commented Dec 11, 2018

Change Description

Optimizations:

  • Minimize packed_transaction copies
  • Remove calls to get/find_plugin<chain_plugin> as lookup is surprisingly expensive
  • Provide more efficient sha256_less for id lookups

net_plugin:

  • Remove large_msg_notify and associated code as not used

Consensus Changes

None

API Changes

  • No changes to net_plugin wire protocol
  • Command line option max-implicit-request is removed. It was effectively ignored before.
  • signal accepted_transaction
    -- transaction_metadata packed_trx changed from packed_transaction to packed_transaction_ptr

Documentation Additions

  • Command line option max-implicit-request is removed. It was effectively ignored before.

None

@heifner heifner requested a review from arhag December 11, 2018 14:02
@heifner
Copy link
Contributor Author

heifner commented Dec 11, 2018

The test failures appear to be real. Investigating.

@heifner heifner mentioned this pull request Dec 11, 2018
@heifner
Copy link
Contributor Author

heifner commented Dec 11, 2018

Reverting "fix sync check for lib" fixed the smoke test. Created issue #6466 for investigation. This PR now contains only optimizations and removal of dead code.

plugins/net_plugin/net_plugin.cpp Show resolved Hide resolved
plugins/net_plugin/net_plugin.cpp Outdated Show resolved Hide resolved
plugins/net_plugin/net_plugin.cpp Outdated Show resolved Hide resolved
plugins/net_plugin/net_plugin.cpp Outdated Show resolved Hide resolved
@heifner heifner merged commit 45cd568 into develop Dec 14, 2018
@heifner heifner deleted the optimize-net-plugin branch December 14, 2018 18:32
ehsandarroudi added a commit to ehsandarroudi/eosfactory that referenced this pull request Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants