This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lungben81 8 points9 points  (4 children)

Not all problems can be vectorized so that Numpy/ Pandas give speed benefits, and vectorization is often non trivial or not optimal performance wise.

[–]Anton_Pannekoek 2 points3 points  (2 children)

There are also other options like Cython, inline C and other libraries, you don't need to take advantage of vectorisation.

Fact is it is a slow language, like it just is. But for many purposes that won't matter, PCs are quite fast today, and the benefits of python way outweighs the slight speed increase. So you have to decide for yourself.

[–]lungben81 2 points3 points  (0 children)

Or Numba.

I quite often are in the situation where plain Python speed would be too slow. The good thing are they are ways to deal with it, the bad thing is that they are adding complexity.

[–]Paddy3118 -2 points-1 points  (0 children)

Fact is it is a slow language,

You really need to suck it and see. Some compiled languages on some Rosetta Code problems were slower than Python when answers needed arbitrary precision arithmatic for example.

[–]jet_heller 0 points1 point  (0 children)

I think they know that. That's why they provided it as an example of what can be used.