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

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

     [ https://issues.apache.org/jira/browse/PROTON-1274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Ross updated PROTON-1274:
--------------------------------
    Fix Version/s:     (was: 0.14.0)
                   0.15.0

> 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.15.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