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

ASF subversion and git services commented on PROTON-2445:
---------------------------------------------------------

Commit 7e0edf421a738fef6e17894f5ab6363ae4a38c5c in qpid-proton's branch 
refs/heads/main from Andrew Stitcher
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=7e0edf4 ]

PROTON-2445: Allow encoder to produce the short forms for 0

Previously (for reasons unknown) the AMQP type encoder never generated
the short typecodes for ulong and uint 0. Using these instead of
SMALLUINT and SMALLULONG saves a byte for each encoding.

[Had to fix a few python tests which have the exact bytes of expected
frames hardcoded in them]


> Make codec encoder use short forms for  ULONG & UINT 0
> ------------------------------------------------------
>
>                 Key: PROTON-2445
>                 URL: https://issues.apache.org/jira/browse/PROTON-2445
>             Project: Qpid Proton
>          Issue Type: Improvement
>          Components: proton-c
>            Reporter: Andrew Stitcher
>            Assignee: Andrew Stitcher
>            Priority: Major
>
> The codec encoder previously would never encode the short forms for  ULONG & 
> UINT 0. There seems to be no good reason for this. Using the short forms 
> saves a significant amount of frame space in frames that have a lot of 0 
> ulongs in them.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to