Django

Code

Show
Ignore:
Timestamp:
08/06/08 10:32:46 (5 months ago)
Author:
jacob
Message:

Major refactoring of django.dispatch with an eye towards speed. The net result is that signals are up to 90% faster.

Though some attempts and backwards-compatibility were made, speed trumped compatibility. Thus, as usual, check BackwardsIncompatibleChanges for the complete list of backwards-incompatible changes.

Thanks to Jeremy Dunck and Keith Busell for the bulk of the work; some ideas from Brian Herring's previous work (refs #4561) were incorporated.

Documentation is, sigh, still forthcoming.

Fixes #6814 and #3951 (with the new dispatch_uid argument to connect).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/dispatch/__init__.py

    r4265 r8223  
    11"""Multi-consumer multi-producer dispatching mechanism 
     2 
     3Originally based on pydispatch (BSD) http://pypi.python.org/pypi/PyDispatcher/2.0.1 
     4See license.txt for original license. 
     5 
     6Heavily modified for Django's purposes. 
    27""" 
    3 __version__ = "1.0.0" 
    4 __author__ = "Patrick K. O'Brien" 
    5 __license__ = "BSD-style, see license.txt for details" 
    68 
     9from django.dispatch.dispatcher import Signal