Hot take: If you need a profiler for Python, you're using the wrong language.

(if you were about to say "well actually", then please hold off on that reply button)

Follow

@loke I like optimizing stuff when programming, sometimes a bit too much, but have to agree with this. When you really need performance, change programming language.

One problem I see a lot with Python is that the language purists have gone a bit too far, developers pushed by linters (e.g. 'pylint') to use comprehensions and other elegant solutions which in some cases creates unnecessary (or undetected) loops within loops (effectively making the code O(N**2)) because using many variables is somehow a bad coding style. I agree source code should be readable, but there has to be a balance with performance.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.