diff --git a/src/gribjump/info/InfoExtractor.cc b/src/gribjump/info/InfoExtractor.cc index 45bf735..922b5e0 100644 --- a/src/gribjump/info/InfoExtractor.cc +++ b/src/gribjump/info/InfoExtractor.cc @@ -53,6 +53,7 @@ std::vector> InfoExtractor::extract(const eckit::PathN eckit::FileHandle fh(path); std::vector> infos; + infos.reserve(offsets.size()); for (size_t i = 0; i < offsets.size(); i++) { fh.openForRead();