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

block_log performance improvement, and misc. #7756

Merged
merged 25 commits into from
Aug 15, 2019
Merged

Conversation

heifner
Copy link
Contributor

@heifner heifner commented Aug 13, 2019

Change Description

  • Main performance enhancement in this PR is the switch to using the new fc::cfile C-file fc#107 in block_log
  • Minor performance improvement in net_plugin of creating packed_transaction and signed_block directly from net_message without a std::move
  • Improve logging in producer_plugin

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

plugins/net_plugin/net_plugin.cpp Outdated Show resolved Hide resolved
plugins/net_plugin/net_plugin.cpp Outdated Show resolved Hide resolved
@heifner heifner requested a review from jgiszczak August 14, 2019 12:11
Copy link
Contributor

@b1bart b1bart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

libraries/fc needs to be bumped after #7757

@@ -759,29 +756,22 @@ namespace eosio {
explicit msg_handler( const connection_ptr& conn) : c(conn) {}

void operator()( const signed_block& msg ) const {
EOS_ASSERT( false, plugin_config_exception, "operator()(signed_block&&) should be called" );
EOS_ASSERT( false, plugin_config_exception, "Not implemented, call handle_message directly instead" );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this not be a templated operator() that throws the assert and catches all overloads that are not explicitly specified?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it can now that no value category of type packed_transaction[_ptr] and signed_block[_ptr] are allowed.

@heifner heifner merged commit f4d0b0b into develop Aug 15, 2019
@heifner heifner deleted the net-plugin-opt-copy branch August 15, 2019 12:04
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.

3 participants