On Friday, 27 June 2014 at 09:37:54 UTC, hane wrote:
Nice! I tested with the Perlin noise benchmark, and it got faster(in my environment, 1.030s -> 0.848s).But floor still consumes almost half of the execution time.
Oh, and by the way, my optimized version (simply replace floor() in perlin_noise.d with a call to llvm_floor() from ldc.intrinsics) is 2.8x faster than the original one on my machine (both with -mcpu=native).
David