Skip to content

Commit

Permalink
Comment on memory handle performance.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Jun 27, 2024
1 parent 9a3027a commit 489fabf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/bitcoin/database/impl/query/translate.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,10 @@ spend_set CLASS::to_spend_set(const tx_link& link) const NOEXCEPT

// This is not concurrent because to_spend_sets is (by tx).
table::spend::get_prevout_sequence get{};

// This reduced a no-bypass 840k sync/confirmable/confirm run by 8.3%.
const auto ptr = store_.spend.get_memory();

for (const auto& spend_fk: puts.spend_fks)
{
if (!store_.spend.get(ptr, spend_fk, get))
Expand Down

0 comments on commit 489fabf

Please sign in to comment.