Optimizing numerical array performance in Haskell
问题 I'm working on a terrain generation algorithm for a MineCraft-like world. Currently, I'm using simplex noise based on the implementation in the paper 'Simplex Noise Demystified' [PDF], since simplex noise is supposed to be faster and to have fewer artifacts than Perlin noise. This looks fairly decent (see image), but so far it's also pretty slow. Running the noise function 10 times (I need noise with different wavelengths for things like terrain height, temperature, tree location, etc.) with