MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/8z7z5r/why_is_python_so_slow/e2ifwiq/?context=3
r/Python • u/Anthonypjshaw • Jul 16 '18
51 comments sorted by
View all comments
Show parent comments
1
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 interpreterNot 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 reallyYes, 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 upThat'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.
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 reallyYes, 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 upThat'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.
2
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 upThat'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.
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.
Rome was not built in one day.
It wasn't built on sand either.
1
u/stefantalpalaru Jul 16 '18
That's not threading. Those are separate processes.
Interpreted Lua is much faster.
It's not that. Many design decisions make it very hard to optimise the interpreter. See https://code.google.com/archive/p/unladen-swallow/