3 ms·
> For example, if I start Julia and type [1 2 3; 4 5 6; 7 8 9] ^ 2' Put that in a function and run it twice. The second time will be blazing fast since it's
by goatlover 8y ago
> For example, if I start Julia and type
[1 2 3; 4 5 6; 7 8 9] ^ 2'
Put that in a function and run it twice. The second time will be blazing fast since it's jitted. That's the workaround for REPL/Notebook usage. In my experience with Notebooks, I end up having to rerun the code all the time, so it will only be slow the first time around. And I've had my share of Python code that took 5 seconds or more to complete, every single time.