HomePhabricator

Move CTxMemPoolEntry class to its own module and inline class's function

Description

Move CTxMemPoolEntry class to its own module and inline class's function

Summary:
The rationale for inlining the functions is that having them in the same translation unit may improve performance of hot loops. See discussion starting at this message:
https://github.com/bitcoin/bitcoin/pull/17786#issuecomment-575673666

This is a backport of core#17786, core#26609 and core#26545

Depends on D15789

Test Plan: ninja all check-all bench-bitcoin

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D15790

Details

Provenance
PiRKAuthored on Mar 27 2024, 10:48
PiRKPushed on Mar 27 2024, 15:52
Reviewer
Restricted Project
Differential Revision
D15790: Move CTxMemPoolEntry class to its own module and inline class's function
Parents
rABC5f461d35eff6: remove coinbase spend tracking in CTxMemPoolEntry
Branches
Unknown
Tags
Unknown