1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

storage: optimize PartsHelper by using vector instead of set for rarest_parts

This commit is contained in:
VolodymyrBg 2025-02-21 22:41:12 +02:00 committed by GitHub
parent 2a68c8610b
commit e534cfa2e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -238,7 +238,7 @@ struct PartsHelper {
return key() < other.key();
}
};
std::set<Key> rarest_parts; // TODO: use vector instead of set
std::vector<Key> rarest_parts; // Using vector for better performance
};
std::vector<Part> parts_;