Dmytro Shteflyuk created THRIFT-5948:
----------------------------------------
Summary: 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
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)