Eric,
Are you really running ROOT version 5.16.16 ?? In your short script, you do not test the I/O speed, but the time for Windows to load a dll.
Please (as I requested) send a complete running macro to test your problem. We cannot do anything with your 4 lines.
Rene Brun
eric.houla_at_free.fr wrote:
> Hi René,
>
> I can run the macro only with:
> {
> TStopwatch timer;
> timer.Start();
> TGraph *g1= new TGraph() ;
> TGraph *g2= new TGraph() ;
> gSystem->Load("SaveData_C.dll");
> SaveData(g1,g2) ;
> printf("Temps CPU pour ouvrir l'interface = %f seconds\n",timer.CpuTime());
> }
>
> It take only for that 2 seconds CPU.
>
> I'm using ROOT v5.16.16.
>
>
>
> Selon Rene Brun <Rene.Brun_at_cern.ch>:
>
>
>> 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 - 17:13:58 CET
This archive was generated by hypermail 2.2.0 : Mon Feb 19 2007 - 17:50:01 CET