Re: [ROOT] How to accelerate root output?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Nov 01 2001 - 15:26:01 MET


Christian,

I cannot explain in a short mail the principle of object serialisation.
We explain this in the Users Guide.
You can look as a example at TStreamerInfo::ReadBuffer
http://root.cern.ch/root/htmldoc/src/TStreamerInfo.cxx.html#TStreamerInfo:ReadBuffer

Calling the ReadBasicArray macro instead of ReadbasicType may save a lot
of time. (same for writing)

Rene Brun

Christian Holm Christensen wrote:
> 
> Hi Rene,
> 
> On Thu, 01 Nov 2001 10:33:36 +0000
> Rene Brun <Rene.Brun@cern.ch> wrote
> concerning "Re: [ROOT] How to accelerate root output?":
> > This class has a bad layout for two reasons.
> >   - in memory, an instance will occupy more space than you
> >     think. All compilers have to align the member boundaries such
> >     that, eg fD2 starts at an 8byte boundary.
> 
> Ok, that makes sense.  I guess this becomes even more tricky on 64bit
> machines.
> 
> >   - the I/O loops on all the cases with a penalyzing if for each case.
> 
> Sorry, I don't get this.  Do you mean it loops on the different kinds
> of memory layout as in class or compiler layout?
> 
> Thanks for the clarification.
> 
> Yours,
> 
> Christian Holm Christensen -------------------------------------------
> Address: Sankt Hansgade 23, 1. th.           Phone:  (+45) 35 35 96 91
>          DK-2200 Copenhagen N                Cell:   (+45) 28 82 16 23
>          Denmark                             Office: (+45) 353  25 305
> Email:   cholm@nbi.dk                        Web:    www.nbi.dk/~cholm



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:05 MET