You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Suboptimal performance on large buffers (sftp, stdin) #892
The following lines lead to suboptimal performance on large buffers.
A single _write or send typically sends ~32K bytes, while copying most of the remaining data passed in e.g. sftp.file.write(data) to a new buffer. If data is a few hundred MB, this can cap the transfer rate with 100% cpu usage.
Activity
bz2 commentedon Jun 6, 2017
It's possible that with #971 passing a
memoryviewin will improve performance for some paths.Force zero-copy slicing with memoryview
BufferedFile: use memoryview in _send_all()
BufferedFile: use memoryview in _send_all()
BufferedFile: use memoryview in _send_all()
bitprophet commentedon Mar 7, 2022
Should be fixed in b4bd81d