You don't like getting 32x speed improvements with almost no changes? There are plenty of languages where things are slow in both global and local scope, in which case you won't have that problem. I suspect, however, that is not actually preferable.
> On Jul 23, 2014, at 9:38 AM, Arnaud Amiel <[email protected]> wrote: > > As suggested by a few of you, I put everything in a function and now it runs > in 1/4 s, that is nearly 32 x improvement for 'no change' that is one of the > aspects I don't like in julia. > Anyway, lesson learnt I will now put everything inside functions and will > learn how to use the profiler
