The Real Python Podcast cover image

What Is a JIT and How Can Pyjion Speed Up Your Python?

The Real Python Podcast

00:00

Pithon Object Allocation - Is That Right?

In piton you've got the int type and te floate type, which is a 64 floating point number. So great but when you actually work on the CPU level it's slower than if you'd have written that in c or c plus plus. Because a 64 bit number fits inside a 64 bits cpu. When you run that in pitin its got to allocate the memory. Crt the object a like to thousands of things instead of just one es. That code up in some of what's happening inside python that makes some of these numerical things slower is just the way that these things need to be turned into versions of python objects with lots of additional o methods.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app