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

Bryan Duxbury updated THRIFT-332:
---------------------------------

    Attachment: thrift-332-v3.patch

This version of the patch includes changes to thrift_native to support Compact 
Protocol, with substantial performance benefits:

||protocol||operation||time||
|binary protocol|write|2.031031|
|accelerated binary protocol|write|0.325992|
|compact protocol|write|0.402717|
|binary protocol|read|2.009999|
|accelerated binary protocol|read|0.598706|
|compact protocol|read|0.604265|

This brings the compact protocol almost to exact parity with the accelerated 
binary protocol. I suspect it'd be even faster if IO were taken into account, 
instead of just CPU time. 

This implementation does have one issue - it seems that the double 
serialization stuff is currently architecture dependent. This area requires 
some more attention.

> Compact Protocol in Ruby
> ------------------------
>
>                 Key: THRIFT-332
>                 URL: https://issues.apache.org/jira/browse/THRIFT-332
>             Project: Thrift
>          Issue Type: Sub-task
>          Components: Library (Ruby)
>            Reporter: Bryan Duxbury
>            Assignee: Bryan Duxbury
>            Priority: Trivial
>         Attachments: thrift-332-v2.patch, thrift-332-v3.patch, 
> thrift-332.patch
>
>


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

Reply via email to