Skip to content

Commit

Permalink
Parse lazily in linear access (#1650)
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel authored Jul 18, 2024
1 parent 7efa3b7 commit 0fa1803
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 @@ -959,6 +959,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 @@ -1025,6 +1027,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 0fa1803

Please sign in to comment.