attractivechaos / plb

Programming language benchmarks
http://attractivechaos.github.com/plb/
272 stars 57 forks source link

use Int16 instead of parametric type in Julia code #31

Closed chroneus closed 2 years ago

chroneus commented 10 years ago

As per http://julia.readthedocs.org/en/latest/manual/performance-tips/#avoid-containers-with-abstract-type-parameters it is not recommended to use parametric type Int. Changing it on my machine to Int16 speed up code from 31 sec to 1 sec. Unfortunately I am not familiar with sudoku neither with Julia to improve it better.