From: Derek P. <ddp...@bi...> - 2009-03-11 04:13:19
|
I was just thinking that we might get a small performance improvement if certain global constants were actually ifdef'd instead. global constant INTERPRET = mode:get_interpret(), TRANSLATE = mode:get_translate(), BIND = mode:get_bind() Currently, we set the 'mode' at the top of the various flavors of Euphoria. These could be set via a "with define" instead and thus we don't need to keep checking the setting during the execution of the interpreter, translator and binder. So in int.ex, instead of ... set_mode( "interpret", 0 ) we could have ... with define INTERPRET and then change the various "if INTERPRET" etc to "ifdef INTERPRET". Is idea this worth pursuing? -- Derek Parnell Melbourne Australia skype:derek.j.parnell |