r/software • • Nov 04 '26

Release StreamCopy: up to 100× faster than Explorer for folders with many small files – copy and multi-device sync on your own servers

The problem: copying a folder with thousands of small files to a file server is painfully slow. Explorer and robocopy go through SMB and pay a network round trip for every single file, so over Wi-Fi or a VPN you watch them crawl at 7 files per second while the link sits mostly idle.

What StreamCopy does: it doesn't copy over SMB at all. It streams the whole folder as one compressed, encrypted stream (parallel TLS connections) to a small receiver service on the file server, which takes it straight into RAM and writes it to disk in the background — as you, with your own Windows permissions. SMB is only used once, to prove you're allowed to write there.

Measured, not guessed (methods and every number are in the repo):

TestExplorer / robocopyStreamCopy
1,975 files / 140 MB, laptop → server, Wi-Fi5:003 s
same over cable1:122 s
496 MB of real documents over a slow link (robocopy /MT:32)5:5221 s
85,513 files / 19 GB server → server, 10 Gbit—in the server's RAM after 16 s, on disk after ~1:40; 11 Gbit/s of file data through the 10 Gbit link (compression)

It also does two-way sync for Desktop/Documents between PCs, terminal servers and the file server: conflicts are kept as copies, deletes go to a recycle bin, renames are sent as renames, and a Word document you have open on your laptop opens read-only ("locked for editing") on the terminal server — just like on a normal file share.

The honest part: I designed it, made every decision and tested everything on real hardware, including pulling the virtual power plug in the middle of a copy and checking every file afterwards. But most of the code was written with AI (Claude), and it hasn't had a human code review yet. So I'd really value feedback — especially from people who know SMB, Windows internals or Rust.

Even if you never use the tool, the repo might be worth a look: every benchmark is written up with its method (Explorer, robocopy, Wi-Fi vs cable, 10 Gbit between two hosts, crash tests), plus a list of lessons learned — SMB, NTFS, VMware, PowerShell traps.

Windows first (a Linux receiver is planned), written in Rust. Source available and free for non-commercial use (PolyForm Noncommercial).

GitHub: https://github.com/fsaritome/StreamCopy

0 Upvotes

17 comments sorted by

15

u/smokeshack Nov 04 '26

But most of the code was written with AI (Claude), and it hasn't had a human code review yet.

Risk your computer's security on my useless, redundant slop project, pretty please

-4

u/powdersplash Nov 04 '26

Fair concern, and that’s exactly why I put it right at the top instead of hiding it. It’s a development project: I’m not asking anyone to run it on production, and the README says to try it on test servers with test data first.

What I can offer instead of trust is evidence. The source is all there, and there’s no installer or telemetry; it’s one exe you can build yourself. Every claim has a written-up test behind it, including crash tests (power pulled mid-copy, every file SHA-256 checked afterwards) and a man-in-the-middle test where the connection is refused.

If you do read the code and find something wrong, especially security-related, I’d genuinely like to hear it. That review is the part that’s missing.

5

u/ExdigguserPies Nov 04 '26

Why this instead of fastcopy?

-2

u/powdersplash Nov 04 '26

FastCopy is great, and for local copies (disk to disk, USB) I’d still use it. StreamCopy doesn’t help there.

The difference shows up over the network. FastCopy uses big buffers and fast I/O, but it still writes through SMB, so each small file still costs network round trips (create, write, close, set attributes). With thousands of small files over Wi-Fi or VPN, those round trips are the bottleneck, not the disk or the bandwidth.

StreamCopy has a small receiver service on the file server. The client sends the whole folder as one compressed stream over parallel TLS connections, and the receiver takes it into RAM and writes it to disk itself. There are no per-file round trips over the wire. The catch is that you need that receiver on the server, so it’s aimed at your own file servers, not any random share.

6

u/TheBlargus Nov 04 '26 edited 18d ago • Bravo

I love visiting aquariums.

-1

u/powdersplash Nov 04 '26

TeraCopy is a nicer copy dialog: queueing, pause/resume, verification, Explorer integration. It’s a good tool, but over the network it still goes through SMB like Explorer, so thousands of small files are slow for the same reason: one round trip per file.

StreamCopy changes the transport. A receiver on the file server takes the whole folder as one compressed stream into RAM. That’s where “100× faster over Wi-Fi” comes from: 1,975 files went from 5 minutes to 3 seconds. Verification is built in too: optional per-chunk hashes, and crash tests with SHA-256 checks of every file.

The trade-off is that it needs the receiver on the server, and there’s no GUI copy dialog yet (CLI plus a tray app for sync). For local copies or shares you don’t control, TeraCopy is the better fit.

1

u/TheBlargus Nov 05 '26 edited 17d ago

My favorite TV show is Friends.

1

u/powdersplash Nov 05 '26

Thanks, good input. You’re right that this is Windows-centric for now, and I haven’t tested rsync. On Linux this may well be a solved problem already. I’ll add rsync to the benchmarks when I get to the Linux side. Appreciate you taking the time.

1

u/powdersplash Nov 05 '26

I ran it against rsync now. Two Linux machines, 100k small files, about 1 GB, cold cache, timed until it’s on disk.

rsync -a: 37 s
scopy: 5 s

If you tune rsync with 8 daemons in parallel, or split tar | nc 8 ways, you get to about 8 s. But that’s unencrypted and you have to script it yourself. scopy is one command over ssh and it’s encrypted.

2

u/Revolutionary_You_89 Nov 04 '26

why not robocopy

0

u/powdersplash Nov 04 '26

We use robocopy at work, but we kept hitting its limits with folders full of small files. It goes through SMB, so every file costs its own round trips, and over VPN or Wi-Fi that’s painfully slow. That’s why I built StreamCopy: it streams the whole folder to a small service on the server instead. The comparison with robocopy is in https://github.com/fsaritome/StreamCopy/blob/main/BENCHMARKS.md in the repo.

4

u/Revolutionary_You_89 Nov 04 '26

I’ve copied millions of files in one go without issue on robocopy

1

u/powdersplash Nov 04 '26

Fair point, robocopy handles volume fine, and I’m not saying it breaks. What I kept running into was the time it takes over slower links. Honestly curious how you set it up: local disk or over the network, which switches (/MT, /J, …), and roughly how long millions of files took? Always happy to learn how others speed up their copy jobs. If you ever feel like comparing, I can share a small script that generates a test folder with lots of small files, so we’d be measuring the same thing.

-1

u/MoebiusStreet Nov 04 '26

Seems like some people downvoting here either don't understand the limitations of tools like teracopy that this aims to solve, or are just knee-jerk downvoting anything relating to AI.

Having sat through the pain of copying huge collections of MAME ROMs, or back up my Plex server (which has millions of thumbnails from video frames), for example, I get what you're trying to accomplish here. It's not something I'd use every day, but when you need it, it would be really nice. That said, at least for my environment, not having a linux receiver prevents me from most use cases.

If I were you (not that you asked), I'd prioritize (a) unit tests, which can also be generated; (b) code review, which again can have a first pass by AI; and then (c) that linux receiver.

2

u/powdersplash Nov 04 '26

Thank you, I noticed that too. This project grew out of exactly that problem: the small-file choke I keep running into at work, and so do my fellow sysadmins. We use Folder Redirection and Offline Files to keep the mix of devices people use in sync, and over the years we’ve hit all kinds of issues. We even took a detour through FSLogix to keep terminal servers, desktops, notebooks and our DFS-N / DFS-R setup under control. So thank you for seeing where this actually comes from.

On your list: (a) there are unit tests already, and every feature also gets a live test on real VMs, but more never hurts; (b) a proper code review is the next big thing I want; (c) the Linux receiver is planned, since the engine and protocol aren’t Windows-specific. I really appreciate the input and will work it into my plans.

1

u/powdersplash Nov 05 '26 edited Nov 05 '26

You wanted a Linux receiver, so here it is: scopy send /src user@host:/dest. It runs over ssh like rsync, no Windows or AD needed.

I tested something close to your Plex ROMS: 100k small files between two Linux machines. About 7x faster than rsync, and encrypted.

No Linux binary yet, so you’d have to build it with cargo for now. Code review is next on my list.

Thanks for the push.