Open DeckerSU opened 1 week ago
This code looks better, thanks. I only suggest to retain the comment about this check (to memorise it):
Getscriptaddress(utxoaddr, loopTx.vout[nvout].scriptPubKey);
if (uniqueLoopAddrs.find(utxoaddr) != uniqueLoopAddrs.end())
...
IIRC it covers the real-world case when address index contained several entries for the same script pubkey
Yesterday, I worked on some Marmara optimizations, and here is a draft of the optimized version of the
EnumLockedInLoop
function. After some measurements, the original function's execution time was around 16,000 ms, while the optimized version took about 13,000–14,000 ms, resulting in a 3,000 ms improvement.@dimxy, if you have time, please run some performance tests. If everything checks out, we can consider including it in the main Marmara codebase.
Optimized version: