TArrayX::Reset() ??

From: Vincent Colin de Verdiere (Vincent.Colin.de.Verdiere@cern.ch)
Date: Tue Mar 28 2000 - 14:30:51 MEST


hi Rooters,
I am a little surprised by the code of the Reset function for all the
integer TArrays:
{for (Int_t i=0;i<fN;i++) fArray[i] = 0;}

It would much faster to do a simple memset.
memset(fArray, 0, fN*sizeof(..));

comments?

-- Vincent

Vincent Colin de Verdiere (vincent.colin.de.verdiere@cern.ch)
at work: CERN, division EP, Office 13-1-038, CH - 1211 Geneva 23
        tel: (+41) 22 76 72839, fax: (+41) 22 767 9075



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:22 MET