Ignore:
Timestamp:
07/02/09 10:31:39 (15 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhbase/MHMatrix.cc

    r9369 r9473  
    255255    TMatrix m(fM);
    256256#endif
    257     fM.ResizeTo(fM.GetNrows()*2, fData->GetNumEntries());
     257
     258    // If we exceed ~50MB of memory we start growing slower
     259    const Int_t n = fM.GetNrows()>10000000/fM.GetNcols() ? TMath::Nint(fM.GetNrows()*1.2) : fM.GetNrows()*2;
     260    fM.ResizeTo(n, fData->GetNumEntries());
    258261
    259262#if ROOT_VERSION_CODE < ROOT_VERSION(3,05,07)
Note: See TracChangeset for help on using the changeset viewer.