Skip to content

Commit

Permalink
Vector reserve
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisspyB committed Jan 6, 2025
1 parent a777486 commit 042bd59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gribjump/info/InfoExtractor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ std::vector<std::unique_ptr<JumpInfo>> InfoExtractor::extract(const eckit::PathN

eckit::FileHandle fh(path);
std::vector<std::unique_ptr<JumpInfo>> infos;
infos.reserve(offsets.size());

for (size_t i = 0; i < offsets.size(); i++) {
fh.openForRead();
Expand Down

0 comments on commit 042bd59

Please sign in to comment.