From f36ba24431313b78e1a8f489714879fe313fbd29 Mon Sep 17 00:00:00 2001 From: edef Date: Tue, 3 May 2022 00:19:40 +0000 Subject: ripple/fossil: don't recursively fsync `add` takes about 10 seconds to run on a full LLVM tree, unless it were to spend 4 minutes mostly waiting for a series of tiny fsyncs. It did. Change-Id: I492604bae68e3472f8626a112a33d023947e0e86 --- ripple/fossil/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ripple') diff --git a/ripple/fossil/src/lib.rs b/ripple/fossil/src/lib.rs index f4ea3cc..0c8a61e 100644 --- a/ripple/fossil/src/lib.rs +++ b/ripple/fossil/src/lib.rs @@ -91,7 +91,7 @@ impl Store { let entry = entry.unwrap(); let name = entry.file_name().into_string().unwrap(); - let child = self.add_path(entry.path()); + let child = self.add_path_inner(&entry.path()); size = size.checked_add(child.size()).expect("overflow"); d.children.insert(name, child); } -- cgit 1.4.1