Reserve vector size

This commit is contained in:
Bart Thomee
2025-05-20 10:07:12 -04:00
parent 2fa1c711d3
commit 965fc75e8a

View File

@@ -97,7 +97,7 @@ DatabaseNodeImp::fetchBatch(std::vector<uint256> const& hashes)
using namespace std::chrono;
auto const before = steady_clock::now();
std::vector<uint256 const*> batch;
std::vector<uint256 const*> batch{hashes.size()};
for (size_t i = 0; i < hashes.size(); ++i)
{
auto const& hash = hashes[i];