src: reduce unnecessary copies/allocations

This commit is contained in:
jpk68
2026-08-27 15:59:55 -04:00
parent 24c2dd987a
commit 3e35bfad7e
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -1777,9 +1777,10 @@ namespace cryptonote
const uint32_t max_nonce = restricted ? 16384 : 65535;
bool collision = true;
std::vector<uint32_t> slots(aux_pow.size());
std::vector<bool> slot_seen(aux_pow.size(), false);
for (nonce = 0; nonce <= max_nonce; ++nonce)
{
std::vector<bool> slot_seen(aux_pow.size(), false);
slot_seen.assign(aux_pow.size(), false);
collision = false;
for (size_t idx = 0; idx < aux_pow.size(); ++idx)
slots[idx] = 0xffffffff;