Skip to content

Commit

Permalink
Add a tactical Reset call to save memory.
Browse files Browse the repository at this point in the history
  • Loading branch information
schneiml committed Jul 23, 2020
1 parent 7540560 commit 6128e00
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions DQMServices/FwkIO/plugins/DQMRootSource.cc
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,9 @@ void DQMRootSource::readElements() {
for (; index != endIndex; ++index) {
reader->read(index, edm::Service<DQMStore>().operator->(), metadata.m_run, metadata.m_lumi);
}
// Drop buffers in the TTree. This reduces memory consuption while the tree
// just sits there and waits for the next block to be read.
tree->Reset();
}
}

Expand Down

0 comments on commit 6128e00

Please sign in to comment.