From cf26dc1f928e9839123bedd1693d792bbb418312 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 1 Dec 2026 02:35:07 +0000 Subject: populate file: list file sources ahead of their turns, at once Comparing a file source with filters takes a run of rsync --list-only, which also checks its .rsync-filter files, and which takes about 50 ms with nothing to do, rsync waiting for its own processes, one source after another: 3.6 s of a no-op run with 50 such sources, locally. rsync::prepare is gather, which runs the commands and prints nothing, and finish, which checks the filter files with what gather got, with the messages, and takes the listing. Right after the probe, gather runs for all file sources whose target paths the probe could list, at most 16 at a time, and each source's turn finishes. The same run takes 0.85 s, and the bench's 1.0 s locally takes 0.7 s. --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 9564113..659b41f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,9 @@ - A `pipe` source with `directory` set makes a directory: its command fills an empty one, mode 0700, and populate delivers what it made, with the modes it has. +- What rsync would transfer of `file` sources gets listed for all of them + at once, before delivering anything, which makes runs with many file + sources with filters and nothing to change much faster. ## 2.0.0 -- cgit v1.3.1 [cgit] Unable to lock slot /tmp/cgit/9c000000.lock: Permission denied (13)