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:40:20 UTC
[jira] [Commented] (PROTON-1274) Performance: avoid referencing
'context' in Event constructor
[ https://issues.apache.org/jira/browse/PROTON-1274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15409960#comment-15409960 ]
Ken Giusti commented on PROTON-1274:
------------------------------------
Reviewboard link: https://reviews.apache.org/r/50863/
> 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