News for hackers. Stuff that matters.
Re:D is being used for autonomous driving research – Audi an... by jbay808 on Tuesday June 25, 2019 @12:22AM (#20271150)
I do 95% of my dev work in Python so I'm quite biased in its favour.

But I've seen literally 1000x speedups from transferring the numerical heavy lifting to C++, which paid back the time it took to rewrite that code in very short order and enabled us to do something that wasn't previously close to practical. I was pretty sure that the benefit would be closer 10x, but nope!

Re:D is being used for autonomous driving research – Audi an... by sametmax on Tuesday June 25, 2019 @03:49AM (#20271972)
1000x faster than numpy / scipy ?
Re:D is being used for autonomous driving research – Audi an... by 6thaccount2 on Tuesday June 25, 2019 @07:46AM (#20273225)
Yea...were you using Numpy or just trying to do someyin base Python?
Re:D is being used for autonomous driving research – Audi an... by jbay808 on Tuesday June 25, 2019 @12:32PM (#20275913)
I use numpy/scipy for everything I do by default, but not all operations can leverage it unfortunately.

So what I mean is that the python program leveraged numpy to the greatest possible extent (that I know how), but was nonetheless 1000x slower than the C++ program that produced the same output. I am not making any claim that particular operations like summing up an array or doing an FFT is 1000x faster in C++ than in numpy. Of course it's not. In this case, numpy calls were certainly not the bottleneck, so it would be wrong to say "1000x faster than numpy". But it was, on the whole, 1000x faster than Python leveraging numpy.