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

Dmytro Shteflyuk resolved THRIFT-5948.
--------------------------------------
    Resolution: Fixed

> Reduce Ruby binary extension write-path overhead in native 
> force_binary_encoding helper
> ---------------------------------------------------------------------------------------
>
>                 Key: THRIFT-5948
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5948
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Ruby - Library
>            Reporter: Dmytro Shteflyuk
>            Assignee: Dmytro Shteflyuk
>            Priority: Major
>             Fix For: 0.24.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The Ruby native extension still routes {{force_binary_encoding}} through 
> {{Thrift::Bytes.force_binary_encoding}} via {{rb_funcall}}, even when the 
> caller is already in C. This adds Ruby dispatch overhead on hot write paths 
> in the native transport/protocol code, especially 
> {{MemoryBufferTransport#write}}, {{BinaryProtocolAccelerated#write_binary}}, 
> and {{CompactProtocol#write_binary}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to