[root] Repository:
ViewVC logotype

Revision 38801


Jump to revision: Previous Next
Author: pcanal
Date: Mon Apr 11 20:10:24 2011 UTC (22 months, 1 week ago)
Log Message:
Reduce by 40% the time taken GetEntry for a branch created using a leaflist (exclusive of the decompression time).

Cache the current basket and its limit.
Reorder the set of test to reduce the number of conditional jump in the most common cases
and use:
  #define unlikely(expr) __builtin_expect(!!(expr), 0)
  #define likely(expr) __builtin_expect(!!(expr), 1)
to tell the compiler/processor which branch is more likely.
Record whether the buffer's map of classname and object is used to avoid resetting unnecessarily at read time.

Changed paths:

Path Details
Directorytrunk/tree/tree/inc/TBranch.h modified , text changed
Directorytrunk/tree/tree/src/TBasket.cxx modified , text changed
Directorytrunk/tree/tree/src/TBasketSQL.cxx modified , text changed
Directorytrunk/tree/tree/src/TBranch.cxx modified , text changed
Directorytrunk/tree/tree/src/TLeafB.cxx modified , text changed
Directorytrunk/tree/tree/src/TLeafD.cxx modified , text changed
Directorytrunk/tree/tree/src/TLeafF.cxx modified , text changed
Directorytrunk/tree/tree/src/TLeafI.cxx modified , text changed
Directorytrunk/tree/tree/src/TLeafL.cxx modified , text changed
Directorytrunk/tree/tree/src/TLeafO.cxx modified , text changed
Directorytrunk/tree/tree/src/TLeafS.cxx modified , text changed

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9