Get Lanyrd on your mobile (iPhone, Android and more) - check it out here

Hacking PyLongObject on Python 3.2

A session at 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.

About the speaker

This person is speaking at this event.
Cesare Di Mauro

Sign in to add slides, notes or videos to this session

EuroPython 2011

Italy Italy, Florence

20th26th June 2011

Tell your friends!

When

Time 12:15pm1:00pm CET

Date Fri 24th June 2011

Short URL

lanyrd.com/sfwkp

View the schedule

See something wrong?

Report an issue with this session