Recent Optimizations in Python's Reference Counting

25 pointsposted a month ago
by f311a

7 Comments

Waterluvian

a month ago

Has improving CPython performance become a huge focus in just the past five years or so, or is that just a perception issue on my end?

Bjartr

a month ago

Because of how much of a cornerstone python generally has been in AI circles, performance improvements have gotten a lot more attention in the past few years.

gizmo686

a month ago

Is python performance actually relevant to AI use cases? It's my understanding that all of the actual number crunching is done with native code.

Bjartr

a month ago

Sure, but that doesn't mean there's no ergonomic benefits to the surrounding code being faster. Plus there's just more eyes and attention on the ecosystem.

f311a

a month ago

Guido gave up the idea of keeping CPython interpreter simple. It's now a complex beast with JIT and a lot of small optimizations.