Skip to content
Snippets Groups Projects
Commit 2776f61a authored by Enrico Guiraud's avatar Enrico Guiraud
Browse files

[TREEPROCMT] Quit loop over TEntryList as soon as we exceed range

parent 5a9eff4f
No related branches found
No related tags found
No related merge requests found
...@@ -166,7 +166,9 @@ namespace ROOT { ...@@ -166,7 +166,9 @@ namespace ROOT {
auto elist = std::make_unique<TEntryList>(); auto elist = std::make_unique<TEntryList>();
Long64_t entry = fEntryList.GetEntry(0); Long64_t entry = fEntryList.GetEntry(0);
do { do {
if (entry >= start && entry < end) // TODO can quit this loop early when entry >= end if (entry >= end)
break;
else if (entry >= start)
elist->Enter(entry); elist->Enter(entry);
} while ((entry = fEntryList.Next()) >= 0); } while ((entry = fEntryList.Next()) >= 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment