• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

remotefs-rs / remotefs-rs-ssh / 23363453241

20 Mar 2026 09:32PM UTC coverage: 80.426% (-0.1%) from 80.546%
23363453241

push

github

veeso
perf: buffer entire file in libssh SFTP reads to reduce round-trips

Replace the streaming SftpFileReader (one SFTP round-trip per read()
call) with a buffered approach that reads the entire file into memory
using a 256 KiB buffer before returning. This pre-fetches the file data
in open_read() rather than deferring reads to the caller's smaller
64 KiB buffer loop, reducing total round-trips.

Unlike the russh backend which uses true concurrent pipelining (multiple
file handles reading different chunks via tokio::spawn), this approach
is still sequential due to libssh-rs serializing all operations through
a session-level mutex. True pipelining would require the AIO FFI
(sftp_aio_begin_read/sftp_aio_wait_read) which libssh-rs does not
expose at the safe API level.

24 of 39 new or added lines in 1 file covered. (61.54%)

2794 of 3474 relevant lines covered (80.43%)

89.8 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

65.53
/src/ssh/backend/libssh.rs


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc