[ 
https://issues.apache.org/jira/browse/DISPATCH-1354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16858956#comment-16858956
 ] 

ASF subversion and git services commented on DISPATCH-1354:
-----------------------------------------------------------

Commit 91cd6285162c1edd49993741f627d96deb06a545 in qpid-dispatch's branch 
refs/heads/master from Charles E. Rolke
[ https://gitbox.apache.org/repos/asf?p=qpid-dispatch.git;h=91cd628 ]

DISPATCH-1354: Annotation processing performance improvements

Message annotation processing on received messages stages key names
byte by byte into a flat buffer and then uses strcmp to check them.

Easy improvements are:

 * Use name in raw buffer if it does not cross a buffer boundary
 * If name crosses a boundary then use memmoves to get the name in chunks
 * Check the name prefix only once and then check variable parts of name strings
 * Don't create unnecessary qd_iterators and qd_parsed_fields
 * Don't check names whose lengths differ from the given keys


> Interrouter annotation processing uses slow methods
> ---------------------------------------------------
>
>                 Key: DISPATCH-1354
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-1354
>             Project: Qpid Dispatch
>          Issue Type: Improvement
>          Components: Router Node
>    Affects Versions: 1.7.0
>            Reporter: Chuck Rolke
>            Assignee: Chuck Rolke
>            Priority: Major
>
> Message annotation processing on received messages stages key names byte by 
> byte into a flat buffer and then uses strcmp to check them.
> Easy improvements are:
>  * Use name in raw buffer if it does not cross a buffer boundary
>  * If name crosses a boundary then use memmoves to get the name in chunks
>  * Check the name prefix only once and then check variable parts of name 
> strings
>  * Don't create unnecessary qd_iterators and qd_parsed_fields
>  * Don't check names whose lengths differ from the given keys



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to