Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.10.0
-
None
Description
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.
TTransport.py
def write(self, buf):
try:
self.__wbuf.write(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
Attachments
Issue Links
- depends upon
-
THRIFT-1857 Python 3.X Support
- Closed
- links to