Using reserve() for optimization inserts, marked unused pair items and minor code refactor

This commit is contained in:
Herman Semenov 2024-04-12 15:42:47 +03:00 committed by chaphidoesstuff
parent 9490b5264e
commit e886f27816
27 changed files with 43 additions and 32 deletions

View file

@ -45,7 +45,7 @@ public:
[[nodiscard]] unsigned Count() const noexcept {
unsigned count = 0;
for (const auto& [index, value] : page_table) {
for (const auto& [_, value] : page_table) {
count += value;
}
return count;