1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-23 03:32:32 +00:00

Bumps up the amount of reserved storage.

To avoid a reallocation when reading Mac data.
This commit is contained in:
Thomas Harte 2019-07-15 17:12:31 -04:00
parent 0568996264
commit 46b98dab70

View File

@ -83,7 +83,7 @@ std::map<std::size_t, Sector> Storage::Encodings::AppleGCR::sectors_from_segment
// one header has been witnessed, start a sector. // one header has been witnessed, start a sector.
if(scanner[2] == data_prologue[2]) { if(scanner[2] == data_prologue[2]) {
new_sector.reset(new Sector); new_sector.reset(new Sector);
new_sector->data.reserve(412); new_sector->data.reserve(710);
} else { } else {
sector_location = static_cast<std::size_t>(bit % segment.data.size()); sector_location = static_cast<std::size_t>(bit % segment.data.size());
} }