Learn · CERN

Talk7 min

Maybe it's not Python that sucks, maybe it's my code

Sebastian WITOWSKI · CERN

Watch At CERN

About

Did you know that in Python integers from -5 to 257 are preallocated? Reusing them 1000 times, instead of allocating memory for a bigger integer, saves a whopping 1 millisecond of code's execution time! Isn't that thrilling? Well, before you get that crazy, learn some basic performance tricks that you can start using today..

0:00:00 Slide 1

0:00:12 Slide 2

0:00:36 Slide 3

0:00:44 Slide 4

0:01:09 Slide 5

0:01:31 Slide 6

0:01:38 Slide 7

0:01:52 Slide 8

0:02:03 Slide 9

0:02:12 Slide 10

0:02:37 Slide 11

The talk

  1. Maybe it's not Python that sucks, maybe it's my code 2015-07-03 · 7 min · CERN's player

Credits and licence

Institution
CERN
Department
IT Lightning Talks (ITLT)
Speaker
Sebastian WITOWSKI
Year
2015
Language
English
Source
CERN
Licence
CERN, as CERN states it. CERN's terms
Attribution
© CERN. CERN provides its audiovisual media free of charge for educational and informational use, credited to CERN; this lecture is shown in CERN's own player.
Who can watch
CERN gives no rating. Invisible Network shows it to Teens profiles and older, judged from what the source says about it. How courses are placed