That is a pretty massive script to ask people to look at for performance :-) Try profiling it and identify the most expensive code and post that, that will be much easier to give feedback on.
- [julia-users] Slow Performance Compared to MATLAB Lutfullah Tomak
- [julia-users] Slow Performance Compared to MATLAB Lutfullah Tomak
- [julia-users] Re: Slow Performance Compared to... Michael Borregaard