[
https://issues.apache.org/jira/browse/PROTON-1274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15410592#comment-15410592
]
ASF subversion and git services commented on PROTON-1274:
---------------------------------------------------------
Commit 7e8e78d0ebc14955aad5b2de0ff32360b1f6adf5 in qpid-proton's branch
refs/heads/master from [~kgiusti]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=7e8e78d ]
PROTON-1274: avoid costly event context lookup
> 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: [email protected]
For additional commands, e-mail: [email protected]