Changes between Version 76 and Version 77 of DeveloperGuidelines/Optimisation
- Timestamp:
- 12/04/11 10:21:05 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Optimisation
v76 v77 17 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 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. 19 * Commercial tool with free trial: http://newrelic.com/python 19 20 * If a specific inner-loop routine cannot be optimised in Python, then consider writing a C routine for this use case. 20 21 21 ''You can't beat C with Python, unless it's about readability.'' 22 22 === !JavaScript ===