RE:loop in macro (fwd)

Masaharu Goto (MXJ02154@nifty.ne.jp)
Sun, 01 Nov 1998 14:14:00 +0900


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