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

Banking stage offload cost model to sep thread #18275

Conversation

tao-stones
Copy link
Contributor

Problem

Currently banking_stage runs cost model logic inline in its main threads. This inline-ness may not be necessary, cost can be tracked on separate thread to minimize overhead to banking main threads.

Summary of Changes

  • add a cost_model_thread to banking_stage
  • banking threads send transaction to cost_model_thread for off-line cost tracking.

Fixes #

cost_model_thread so the cost tracking is done offline.
… after committed to bank, avoiding cloning individual `transaction` when send.
@tao-stones tao-stones force-pushed the banking_stage_offload_cost_model_to_sep_thread branch from a7a14a3 to d3c3412 Compare June 29, 2021 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant