News for hackers. Stuff that matters.
Re:Why I Still Use Python for High Performance Scientific Co... by IanCal on Wednesday December 02, 2015 @07:03AM (#10662433)
> Numpy does 90% of the work

Numpy and scipy have been the core of a huge amount of my optimisations. The first question I try and ask is

"Could this be solved with matrix multiplications and summing?"

Often the answer is "yes" and allows you to group a huge amount of calculations all together, and use the heavily optimised code available numpy/scipy.

I recently swapped out something that was running at about 100 rows calculated/second to about half a million in about 0.2s.

Re:Why I Still Use Python for High Performance Scientific Co... by IanCal on Wednesday December 02, 2015 @09:39AM (#10663148)
In fairness, I should point out that the really slow version was also written by me :)
Re:Why I Still Use Python for High Performance Scientific Co... by corysama on Wednesday December 02, 2015 @10:37AM (#10663541)
Re:Why I Still Use Python for High Performance Scientific Co... by IanCal on Thursday December 03, 2015 @06:16PM (#10673458)
Fantastic!