Page MenuHomePhabricator

Reduce cache lookups in CCoinsViewCache::FetchCoin
ClosedPublic

Authored by PiRK on Fri, Nov 28, 12:14.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCbf2683f2509c: Reduce cache lookups in CCoinsViewCache::FetchCoin
Summary

Enhanced efficiency and readability of CCoinsViewCache::FetchCoin by replacing separate find() and emplace() calls with a single try_emplace(), reducing map lookups and potential insertions.
This is a backport of core#30326

Test Plan

ninja all check-all