Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
proton-0.13.0
-
None
Description
Each time an Event object is instantiated its context is checked to determine if the Event is user-defined rather than a native Proton event.
Referencing the context is expensive - it causes a temp wrapped object to be created then disposed. This can be avoided by checking if the event's class is PN_PYREF, which it will always be for user-defined events.