Page MenuHomePhabricator

test: improve mempool_updatefromblock efficiency by using getmempoolentry for specific txns
ClosedPublic

Authored by PiRK on Aug 25 2021, 09:37.

Details

Summary

This improvement shaves off almost one minute on my machine for one of the longest functional test.

Before:

$ testr.py mempool_updatefr*
Starting Bitcoin ABC functional tests

mempool_updatefromblock.py started
Running jobs: mempool_updatefromblock.py
mempool_updatefromblock.py passed, Duration: 277 s

After:

$ testr mempool_updatefr*
Starting Bitcoin ABC functional tests

mempool_updatefromblock.py started
Running jobs: mempool_updatefromblock.py
mempool_updatefromblock.py passed, Duration: 219 s

This is a single commit from core#22707. The other commits still have a year worth of unbackported dependencies, and have a lower impact.

https://github.com/bitcoin/bitcoin/pull/22707/commits/86dbd54ae8a8f9c693c0ea67114bbff24a0754df

Test Plan
test/functional/test_runner.py  mempool_updatefromblock

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.Aug 25 2021, 09:37
PiRK planned changes to this revision.Aug 26 2021, 10:02

Standby until 22707 can be fully backported

PiRK requested review of this revision.Sep 1 2021, 07:18
This revision is now accepted and ready to land.Sep 1 2021, 09:01