Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

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 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.

1 participant