Buy Tickets
Starting from 350€
Support unavailable
Please try again later

Hacking PyLongObject on Python 3.2

by Cesare Di Mauro for EuroPython 2011

Beginning with Python 3 the old integer ("int") type has gone leaving the place to “long”, which replaced it giving a unique, uniform type to deal with integers. However longs need a more complex structure which effectively dropped a bit of Python 3.x performance. Looking at their implementation, an idea grown that can help to improve the situation on common sceneries (using “short” integers). A slightly changed structure will be presented and compared with the old PyIntObject and the current Python 3.2 PyLongObject, along with some optimizations, thoughts, and issues found on the road, which will show the effort required by such change on a Python core element.

Do you have some questions on this talk? Leave a comment to the speaker!

New comment

Download slide (ZIP Archive)
(Size: 697.7 KB)

Language
EN
Duration
45 minutes
Our Sponsors
Spotify
Python Experts
Personnel development with 360° feedback
SSL Matrix
Wanna sponsor?