Changes between Version 75 and Version 76 of DeveloperGuidelines/Optimisation


Ignore:
Timestamp:
11/18/11 12:30:54 (10 years ago)
Author:
Mike A
Comment:

escaping markup for the fourth time due to mis-detection of merge conflicts

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Optimisation

    v75 v76  
    1515 * http://www.skymind.com/~ocrow/python_string/
    1616 * http://diveintopython.org/performance_tuning/index.html
    17  * If Python is eating too much memory, it could be because you are instantiating lots of a particular class, consider using __slots__ http://stackoverflow.com/questions/472000/python-slots
    18  * You can check the actual memory usage per class using MyClass.__basicsize__, remembering that subclasses of classes without __slots__ or top-level classes without __slots__ have a __dict__ which also takes up memory.
     17 * If Python is eating too much memory, it could be because you are instantiating lots of a particular class, consider using !__slots!__ http://stackoverflow.com/questions/472000/python-slots
     18 * You can check the actual memory usage per class using !MyClass.!__basicsize!__, remembering that subclasses of classes without !__slots!__ or top-level classes without !__slots!__ have a !__dict!__ which also takes up memory.
    1919 * If a specific inner-loop routine cannot be optimised in Python, then consider writing a C routine for this use case.
    2020