Commit 137a98c
committed
Merge bitcoin/bitcoin#27610: Improve performance of p2p inv to send queues
5b34060 net_processing: Boost inv trickle rate (Anthony Towns)
228e920 txmempool: have CompareDepthAndScore sort missing txs first (Anthony Towns)
Pull request description:
Couple of performance improvements when draining the inventory-to-send queue:
* drop txs that have already been evicted from the mempool (or included in a block) immediately, rather than at the end of processing
* marginally increase outgoing trickle rate during spikes in tx volume
ACKs for top commit:
willcl-ark:
ACK 5b34060
instagibbs:
ACK bitcoin/bitcoin@5b34060
darosior:
utACK 5b34060
glozow:
code review ACK 5b34060
dergoegge:
utACK 5b34060
Tree-SHA512: 155cd3b5d150ba3417c1cd126f2be734497742e85358a19c9d365f4f97c555ff9e846405bbeada13c3575b3713c3a7eb2f780879a828cbbf032ad9a6e5416b302 files changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5677 | 5677 | | |
5678 | 5678 | | |
5679 | 5679 | | |
5680 | | - | |
| 5680 | + | |
| 5681 | + | |
| 5682 | + | |
5681 | 5683 | | |
5682 | 5684 | | |
5683 | 5685 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
755 | 755 | | |
756 | 756 | | |
757 | 757 | | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
758 | 763 | | |
759 | | - | |
760 | | - | |
761 | 764 | | |
762 | | - | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
763 | 768 | | |
764 | 769 | | |
765 | 770 | | |
| |||
0 commit comments