![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re^2: Perl PDL slower than python numpyby syphilis (Bishop) |
on Sep 22, 2020 at 14:36 UTC ( #11122086=note: print w/replies, xml ) | Need Help?? |
My answer doesn't explain the observed speed comparison. Might it simply be that numpy is optimized to recognize that $X + $Y is $Y, and $X / $Y is $X ? (Whereas PDL goes to the trouble of doing the arithmetic.) Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|