stride in slices
Ethan
gooberman at gmail.com
Mon Jun 4 23:08:17 UTC 2018
On Monday, 4 June 2018 at 18:11:47 UTC, Steven Schveighoffer
wrote:
> BTW, do you have cross-module inlining on?
Just to drive this point home.
https://run.dlang.io/is/nrdzb0
Manually implemented stride and fill with everything forced
inline. Otherwise, the original code is unchanged.
17 ms, 891 μs, and 6 hnsecs
15 ms, 694 μs, and 1 hnsec
15 ms, 570 μs, and 9 hnsecs
My new stride outperformed std.range stride, and the manual
for-loop. And, because the third test uses the new stride, it
also benefited. But interestingly runs every so slightly faster...
More information about the Digitalmars-d
mailing list