pythran icon indicating copy to clipboard operation
pythran copied to clipboard

Use faster scalar version for trigo function

Open serge-sans-paille opened this issue 7 years ago • 3 comments

Second try.

serge-sans-paille avatar Nov 01 '18 12:11 serge-sans-paille

@JohanMabille what's your take on this?

serge-sans-paille avatar Nov 02 '18 06:11 serge-sans-paille

If it turns out to be faster than the scalar (std) version, we can implement the same algorithms for scalars as the ones operating on batches (so we save the transfer to and from simd registers).

JohanMabille avatar Nov 02 '18 06:11 JohanMabille

the speedup may come from the usage of sse instruction though. This needs more investigation. But yes, this is faster for the flagged functions, at least on my laptop, but this is probably hardware-dependent.

serge-sans-paille avatar Nov 02 '18 06:11 serge-sans-paille