summaryrefslogtreecommitdiffhomepage
path: root/sites/docs/api/keys.rst
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2022-03-07 16:21:28 -0500
committerJeff Forcier <jeff@bitprophet.org>2022-03-07 16:31:01 -0500
commitb4bd81dce17d23b3e402b7fd492bb2ebd30b284c (patch)
tree2f170aa96d422c7258229171ef51d731754a27a2 /sites/docs/api/keys.rst
parent60b4d1e025044090fea16de076dd0dbfb31e7f1d (diff)
Massively speed up low-level SFTP read/write
This doesn't impact most users who perform reads/writes using SFTPClient.get(fo)/put(fo) as those naturally perform chunking. However, users accessing the raw SFTPFile objects via SFTPClient.open() and then reading/writing large (more than a few MB) files, may experience severe slowdown due to inefficient slicing of the file being read/written. This change replaces the naive "slice a list of bytes" code with bytearray and memoryview, which are significantly more performant in these use cases, while remaining backwards compatible. Patch courtesy of Sevastian Tchernov.
Diffstat (limited to 'sites/docs/api/keys.rst')
0 files changed, 0 insertions, 0 deletions