Improving performance of mapping algorithm

The biggest problem with this code by far is that it’s all in the gobal scope. Reading this Performance Tips · The Julia Language will give you a good start towards optimizing the code.

2 Likes