WIP: coins: cache UTXO outpoint hash codes

bitcoin/bitcoin: PR #35195

1 suggestion

Optional improvements

Link

[suggestion] · The cache-capacity change is missing from the release notes

On libstdc++ builds, hash caching reduces UTXO capacity at a fixed -dbcache and can increase memory use when the cache never fills, but the PR lacks an operator-facing note.

Location: src/coins.h:253 (head).

Details and suggested fix

Changing the outpoint overload to noexcept(false) makes libstdc++ store a cached size_t in each CCoinsMap node, normally 8 bytes on 64-bit systems. The pool allocates the rebound node's actual size; its maximum-block-size allowance is not prepaid storage. Chunk usage still feeds the existing byte-based flushing thresholds, but a setting previously sufficient to retain the whole UTXO set may now flush earlier. Add a doc/release-notes-<PR>.md entry explaining this tradeoff, as #16957 did for the reverse change. Operators who want to preserve full-set capacity may increase -dbcache if RAM permits; others need not change their setting to preserve the configured memory budget. Scope the note to libstdc++ builds, since libc++ already caches hashes. Exact capacity and peak-RSS effects depend on platform and workload; the supplied memory measurements used older bases, not this head.


Coverage details