[phobos] Ndslice speed

Martin Nowak via phobos phobos at puremagic.com
Thu Dec 29 10:13:34 PST 2016


On 08/27/2016 09:43 PM, Matthias Redies via phobos wrote:
> I understand that dmd is not optimized for speed, but in the end both
> do basically the same thing. Both implement 2D array and both array
> types include the size of the array (unlike C). Given that both are
> compiled languages the difference seems to be unreasonably large.
The difference is likely so huge, because one is using vectorized ops
(SSE), which dmd doesn't do.
Use an optimizing compiler that support auto-vectorization (ldc or gdc)
and get into touch with the ndslice authors.
You should be able to get very similar numbers.

-Martin


More information about the phobos mailing list