Skip to content
Snippets Groups Projects
Commit 0184dd8a authored by Philippe Canal's avatar Philippe Canal
Browse files

Use TObjArray::GetEntriesFast to avoid wasting time.

TObjArray::GetEntries() counts the number of non-zero slots
while TObjArray::GetEntriesFast() return (in most case) the value of a high water mark (the slot over which all remaining slots
are empty).

In one use case (doing read a TTree and do many TTree cloning (via TBufferMerger), TObjArray::GetEntries was taking 8% of the
running time (compression was disabled)

Note: TObjArray::IsEmpty use GetEntriesFast rather than GetEntries.
parent b5f31623
No related branches found
No related tags found
No related merge requests found
Loading
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