RE:loop in macro (fwd)

From: Masaharu Goto (MXJ02154@nifty.ne.jp)
Date: Sun Nov 01 1998 - 06:14:00 MET


Otto,

The interpreter behaves as it is designed.
Once you break the execution while compilation, bytecode is voided and it
runs much slower. This happens at the first loop execution. 

Masaharu Goto

-------------------------------------------------------
Hi Rene,
suppose the following (useless) macro:
void tloop()
{
   gROOT->Reset();
   Int_t i, j;
   while (1) {
      cout << " enter count loop " << endl;
      for(i = 1; i <= 500; i++ ){
         for(j = 1; j <= 500; j++ ){
         }
      }
      cout << " exit count loop " << endl;
      gSystem->Sleep(1000); 
   }
}

I do .L tloop.C
     tloop()

it runs fast as expected.
Now I break it with Ctrl C and run it again.
Now it runs much much slower.
Did I miss something? 
Cheers,
Otto



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:39 MET