thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuxuan Wang (Jira)" <>
Subject [jira] [Created] (THRIFT-5279) Cleanups/small optimizations for go's serializer/deserializer code
Date Tue, 22 Sep 2020 21:45:00 GMT
Yuxuan Wang created THRIFT-5279:

             Summary: Cleanups/small optimizations for go's serializer/deserializer code
                 Key: THRIFT-5279
             Project: Thrift
          Issue Type: Task
          Components: Go - Library
    Affects Versions: 0.13.0
            Reporter: Yuxuan Wang
            Assignee: Yuxuan Wang

Currently go's default NewTSerializer and NewTDeserializer implementations use NewTBinaryProtocolFactoryDefault().GetProtocol(transport)
to get the protocol. This is essentially the same as NewTBinaryProtocolTransport(transport),
but with an extra allocation of the ProtocolFactory that is only used once then discarded.
Streamline it will give as a minor performance gain.

Also I plan to add new constructors for TSerializerPool and TDeserializerPool to make it easier
to use with non-default protocols.

This message was sent by Atlassian Jira

View raw message