[Gretl-devel] experimental feature in CVS

Allin Cottrell cottrell at wfu.edu
Tue Apr 29 16:46:58 EDT 2008


Current CVS contains this experimental feature: when gretl 
encounters a genr-type command within a loop, then on
condition that no string substitution has been done on the line 
(and that include $i-type substitution) it "compiles" the genr 
expression once and re-uses it on subsequent iterations of the 
loop.

(If string substitution has been done, we can't assume it will 
"the same genr" the next time round.)

The idea, of course, is to speed up loop execution. While I've 
done a certain amount of testing (which seems to show quite a 
handy speed-up), it's quite likely there are problem cases that I 
haven't thought of yet.  If you want to turn off this behavior, 
open lib/src/monte_carlo.c in a text editor and change

#define GENCOMPILE 1

to

#define GENCOMPILE 0

But if you'd like to test the new behaviour, that would be great.

Allin.


More information about the Gretl-devel mailing list