thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jin Yao (JIRA)" <>
Subject [jira] [Created] (THRIFT-4102) TBufferedTransport performance issue since 0.10.0
Date Wed, 22 Feb 2017 13:53:44 GMT
Jin Yao created THRIFT-4102:

             Summary: TBufferedTransport performance issue since 0.10.0
                 Key: THRIFT-4102
             Project: Thrift
          Issue Type: Bug
          Components: Python - Library
    Affects Versions: 0.10.0
            Reporter: Jin Yao

I upgrade thrift from 0.9.3 to 0.10.0, and our rpc calls slow down.
I digged around the code, and find maybe it caused by the write function in TBufferedTransport.

The last line seems useless, but cost time.
def write(self, buf):
        except Exception as e:
            # on exception reset wbuf so it doesn't contain a partial function call
            self.__wbuf = BufferIO()
            raise e
    self.__wbuf.getvalue() # it seems useless, but cost time

This message was sent by Atlassian JIRA

View raw message