Ken Giusti created PROTON-1274:
----------------------------------

             Summary: Performance: avoid referencing 'context' in Event 
constructor
                 Key: PROTON-1274
                 URL: https://issues.apache.org/jira/browse/PROTON-1274
             Project: Qpid Proton
          Issue Type: Improvement
          Components: python-binding
    Affects Versions: 0.13.0
            Reporter: Ken Giusti
            Assignee: Ken Giusti
             Fix For: 0.14.0


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.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to