News for hackers. Stuff that matters.
Re:Ty: A fast Python type checker and language server by shiandow on Thursday May 08, 2025 @07:28AM (#43925117)
CPU intensive is not quite the right metric. What python is slow at is all the extra administration that comes with basic stuff like accessing attributes and function calls.

This gives somewhat counterintuitive results where declaring and summing a whole list of integers in memory can be faster than a simple for loop with an iterator.

But yeah writing stuff in a different (compiled) language is often better if that means the python interpreter doesn't need to go through as many steps.

There are no comments on this comment yet.