Changes between and of Initial VersionVersion 1Ticket #3245


Ignore:
Timestamp:
05/20/2008 07:52:09 AM (9 years ago)
Author:
exarkun
Comment:

Fixing description markup.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3245 – Description

    initial v1  
    1 Programs which use a lot of Deferreds could benefit from __slots__.
     1Programs which use a lot of Deferreds could benefit from `__slots__`.
    22
    33Simple test I did proved, that the program which created huge list of empty Deferreds had its memory usage (both RSS anv VSS) halved after such a change (longer post on the mailing list)
     
    99Instead of:
    1010
     11{{{
    1112   class Deferred:
     13}}}
    1214
    1315write:
    1416
     17{{{
    1518   class Deferred(object):
    1619      __slots__ = ['debug', 'callbacks', 'called', 'paused', 'result',
    1720                   'timeoutCall', '_runningCallbacks', '_debugInfo']
    18 
     21}}}