Skip to content

perf(core-transaction-pool): use tree memory structure to sort by fee and by sender nonce#3667

Merged
faustbrian merged 12 commits intomasterfrom
perf/tx-pool-memory-tree
Apr 28, 2020
Merged

perf(core-transaction-pool): use tree memory structure to sort by fee and by sender nonce#3667
faustbrian merged 12 commits intomasterfrom
perf/tx-pool-memory-tree

Conversation

@air1one
Copy link
Copy Markdown
Contributor

@air1one air1one commented Apr 28, 2020

Summary

Plus other perf improvements.

Now inserting txs is slower (expect around 10k per second, still okay).

But fetching is way faster, which is important when getting transactions for forging, considering default tx pool limit is 100k.

Checklist

  • Documentation (if necessary)
  • Tests (if necessary)
  • Ready to be merged

@faustbrian faustbrian merged commit 74aa1e0 into master Apr 28, 2020
@ghost ghost deleted the perf/tx-pool-memory-tree branch April 28, 2020 06:08
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.

2 participants