Skip to content

Commit

Permalink
Parse lazily in linear access
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Jul 17, 2024
1 parent 3ca4478 commit 10903a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Series.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,8 @@ auto Series::initIOHandler(
MPI_Communicator &&...comm)
-> std::tuple<std::unique_ptr<ParsedInput>, TracingJSON>
{
auto &series = get();

json::TracingJSON optionsJson = json::parseOptions(
options,
std::forward<MPI_Communicator>(comm)...,
Expand Down Expand Up @@ -1031,6 +1033,10 @@ auto Series::initIOHandler(
}
}

// default options
series.m_parseLazily = at == Access::READ_LINEAR;

// now check for user-specified options
parseJsonOptions(optionsJson, *input);

if (resolve_generic_extension && !input->filenameExtension.has_value())
Expand Down

0 comments on commit 10903a6

Please sign in to comment.