Re: Write method very slow

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Mon, 19 Feb 2007 16:52:01 +0100


What do you mean by very slow, hours, minutes, seconds, microseconds?

Could you provide a simple but running script demonstrating the problem?

Which version of ROOT?

Rene Brun

eric.houla_at_free.fr wrote:
> Hi all!
>
> I have written this small macro:
> #include <TROOT.h>
> #include <TFile.h>
> #include <TGraph.h>
> #include <TMultiGraph.h>
>
> void SaveData(TGraph *g1, TGraph *g2);
>
> void SaveData(TGraph *g1, TGraph *g2)
> {
>
> TFile *f = new TFile ("test.root", "RECREATE");
> g1->Write("g1");
> g2->Write("g2");
> delete f;
>
> }
>
> and i compiled it with .L SaveData.C++
>
> But the process for writing the objects in the TFile is "very" long.
> Is there no way to boost it ??
>
> Thank you all!
>
> Regards.
>
Received on Mon Feb 19 2007 - 16:52:08 CET

This archive was generated by hypermail 2.2.0 : Tue Feb 20 2007 - 11:50:00 CET