jeffro256 and jwinterm
32f0faf2e6
tx_memory_pool: speedup get_complement() for large requests
...
Changes complexity from M*N to (2*N+M)*log2(M). The FCMP++ stressnet recently hit mempool sizes of ~55k txs.
If the requesting node's mempool is populated, this results in an average of (55000*55000)/2
(about 1.5 billion) comparisons for the responding node. Under this commit, this would be reduced to
(55000+55000)*log2(55000) comparisons (about 2.6 million), a 99.83% reduction.
(cherry picked from commit 0761024b349048ebf79dbfe71caab11826833464)
2026-05-05 18:19:54 -04:00
..
2022-03-04 06:59:20 +01:00
2022-03-04 06:59:20 +01:00
2019-03-07 16:08:00 +00:00
2022-03-04 06:59:20 +01:00
2022-03-04 06:59:20 +01:00
2023-03-29 08:44:20 +02:00
2018-12-04 15:14:29 +00:00
2022-03-04 06:59:20 +01:00
2022-04-06 08:12:44 +02:00
2022-03-04 06:59:20 +01:00
2022-03-04 06:59:20 +01:00
2022-03-04 06:59:20 +01:00
2022-04-18 00:49:53 -07:00
2024-09-10 16:07:36 -05:00
2019-07-04 12:49:54 +01:00
2019-03-05 10:24:24 +00:00
2019-03-05 10:24:24 +00:00
2019-03-04 11:56:29 +00:00
2022-03-04 06:59:20 +01:00
2025-01-09 12:01:06 -06:00
2022-03-04 06:59:20 +01:00
2018-10-25 02:06:23 +00:00
2022-03-04 06:59:20 +01:00
2022-03-04 06:59:20 +01:00
2022-03-04 06:59:20 +01:00
2022-03-04 06:59:20 +01:00
2022-03-04 06:59:20 +01:00
2025-09-19 21:01:41 +03:00
2022-03-04 06:59:20 +01:00
2026-05-05 18:19:54 -04:00
2022-03-04 06:59:20 +01:00
2022-03-04 06:59:20 +01:00
2022-03-04 06:59:20 +01:00
2023-11-04 21:01:47 +01:00
2014-03-03 22:07:58 +00:00
2022-04-18 10:01:13 +02:00
2018-08-15 18:20:22 +02:00
2014-05-17 15:39:46 -07:00
2018-09-11 14:32:33 +00:00
2014-05-25 13:06:40 -04:00
2022-03-04 06:59:20 +01:00
2022-03-04 06:59:20 +01:00
2023-03-29 08:44:20 +02:00
2022-03-04 06:59:20 +01:00
2016-10-29 14:59:06 +01:00
2014-03-03 22:07:58 +00:00
2022-03-04 06:59:20 +01:00
2022-03-04 06:59:20 +01:00
2018-09-09 20:43:01 +02:00
2025-09-19 21:01:42 +03:00