RE: [ROOT] need info on low level stuff

From: HP Wei (hp@rentec.com)
Date: Tue Dec 10 2002 - 03:57:44 MET


> >   The latter will be bad for speed concern if we only want
> >   the first entry.
>
> It is later.  It is assumed that in the most general case
>you would want to read the next event after that
>(reading 32K at in one
>disk read is more efficient that reading several time 800 bytes).
   Thanks for this point.  Now I understand why my test program in ROOT
   is slower than an internal benchmark.
   In our case, we need to read the 100 dimesion array
   located in different part
   of the branch.  They are separated in a regular fashion, though.
   I will try to reduce the buffer size to 1000!

----------------------------------
   Is it true that the buffer size is not changable when the tree is
   being accessed ?

   When we generate the tree branch, can I set the branch's buffer size
   to be 100*8 + (magic_overhead_size) ??
   what is that (magic_overhead_size) ???  Is it a fixed nubmer ?  Or is
   it a function of some variables ?

   How about this?  When accessing, we usually set up an array data[100]
   and SetBranchAddress("br", data).  My question is:
   Can that space occupied by data[100] be used as the buffer?
   This way, the data will be there without the extra step of
   moving from the buffer.


HP



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:23 MET