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

Problem: roadblocks for parallel transaction execution #412

Closed
yihuang opened this issue Mar 8, 2024 · 1 comment
Closed

Problem: roadblocks for parallel transaction execution #412

yihuang opened this issue Mar 8, 2024 · 1 comment

Comments

@yihuang
Copy link
Collaborator

yihuang commented Mar 8, 2024

Proposal: Clear the roadblocks for parallel transaction execution

Current behavior:

We are trying block-stm parallel transaction execution and have identified a few roadblocks.

The main thing would be the three accumulating states in the transient stores: tx index, log size, block bloom, total gas used.

Desired behavior:

Each transaction should not unnecessarily share states, we can't control what account and contract state the transaction want to access, but other than that, we should have zero shared states.

Use case:

To have better performance in block-stm parallel execution.

Design

  • total gas used is easy to change, we only want to accumulate the gas used within the current tx in the first place, so we'll simply append the tx index to the key, and we can even remote the ResetTransientGasUsed, cleaner than before.
  • block bloom is also fine, we append the txindex/msgindex to the key, then iterate and combine them in end-blocker.
  • log size, iterate the tx results after all executed, re-assign the log index in the rsp.Logs
  • tx index, iterate the tx results after all executed, insert the tx index event
@yihuang
Copy link
Collaborator Author

yihuang commented Mar 25, 2024

duplicated: #432

@yihuang yihuang closed this as completed Mar 25, 2024
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

No branches or pull requests

1 participant