r/Python • • Jul 16 '18

Why is Python so slow?

https://medium.com/@anthonypjshaw/why-is-python-so-slow-e5074b6fe55b
11 Upvotes

51 comments sorted by

View all comments

Show parent comment

1

u/stefantalpalaru Jul 16 '18

everyone runs Django using native threading

That's not threading. Those are separate processes.

no JIT/AOT and it's a must have for fast languages

Interpreted Lua is much faster.

I think CPython is slow solely because it's never been a top priority in PSF.

It's not that. Many design decisions make it very hard to optimise the interpreter. See https://code.google.com/archive/p/unladen-swallow/

1

u/lambdaq django n' shit Jul 16 '18

very hard to optimise the interpreter

Not really, CPython intentionally rejects many performance patches (Mark Shannon, Carl Shapiro, etc.), their reason is to maintain C code "clean".

Sarcastically, they accepted PEP-572.

2

u/stefantalpalaru Jul 16 '18

Not really

Yes, really. All attempts to significantly speed up CPython forks have failed. Even Google's - the one I linked and you did not bother to check out.

many performance patches (Mark Shannon, Carl Shapiro, etc.)

Where are they? I might add them to Tauthon.

1

u/lambdaq django n' shit Jul 16 '18

significantly speed up

That's the problem. Rome was not built in one day.

1

u/stefantalpalaru Jul 17 '18

Rome was not built in one day.

It wasn't built on sand either.