summary refs log tree commit diff
path: root/ripple
diff options
context:
space:
mode:
authoredef <edef@unfathomable.blue>2022-05-03 00:19:40 +0000
committeredef <edef@unfathomable.blue>2022-05-03 00:19:40 +0000
commitf36ba24431313b78e1a8f489714879fe313fbd29 (patch)
treece6bc52d09de39c006bc90249c40767c3538ff3e /ripple
parentf8829efb3b7967881253ff0cd2b22ddae2a7b589 (diff)
downloadunf-legacy-f36ba24431313b78e1a8f489714879fe313fbd29.tar.zst
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
Diffstat (limited to 'ripple')
-rw-r--r--ripple/fossil/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
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);
 				}