You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Bryan Duxbury (JIRA)" <ji...@apache.org> on 2010/04/05 18:30:27 UTC

[jira] Closed: (THRIFT-754) Improvements to varint reading in Compact Protocol

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

Bryan Duxbury closed THRIFT-754.
--------------------------------

    Resolution: Fixed

I just committed this.

> Improvements to varint reading in Compact Protocol
> --------------------------------------------------
>
>                 Key: THRIFT-754
>                 URL: https://issues.apache.org/jira/browse/THRIFT-754
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Library (Java)
>    Affects Versions: 0.3
>            Reporter: Bryan Duxbury
>            Assignee: Bryan Duxbury
>             Fix For: 0.3
>
>         Attachments: thrift-754.patch
>
>
> I've found a way to make better use of direct buffer access in the Compact Protocol that makes reading varints faster. When there's at least 5 or 10 bytes available in the buffer, we can try to do the whole varint deserialization from the buffer rather than byte by byte, and ultimately only consume the bytes we used. This lets us avoid the cost of going back and forth from the buffer 1-10 times.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.