You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Ken Giusti (JIRA)" <ji...@apache.org> on 2016/08/05 19:33:20 UTC

[jira] [Created] (PROTON-1274) Performance: avoid referencing 'context' in Event constructor

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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org