Logo     Photos

6 Member(s) Online

PyCon is a 100%
Volunteer-run
Conference Organized by
Members of the
Python
Community.

Site/Questions etc ?

Valid XHTML 1.0 Transitional

Valid CSS!

PyCon 2007 is sponsored
in part by
Zenoss - The Next Step in IT Management Google Microsoft .Net Framework EWT LLC Enthought, Inc. ITA Software
Platinum
Wingware Python IDE Accense Technology, Inc.
Gold
Quality Vision International Inc. MerchantCircle Big Nerd Ranch, Inc. High Speed Rails Canonical ZeOmega -- Open Minds' Open Solutions Open Source Applications Foundation CCP Games Tummy.com - we do linux AG Interactive ActiveState - Dynamic Tools for Dynamic Languages
Silver
Python411 Podcast Series O'Reilly Media, Inc.
Media

How to Optimize Your Python Programs?


  • optimization - speed or memory?
  • common mistakes
    • use of repeated append on strings
    • not using Numeric when doing array operations
      • such as graphics, sound
    • close your handles, release your objects where possible
  • what slows Python down?
    • looping?
    • function calls?
  • methods to speed things up
    • pre-binding
    • push looping into C extensions
    • code in C extensions releases global lock and speeds up execution on multicores
  • shrinking your memory footprint
Content Last Modified: October 23, 2006, at 11:22 PM