diff options
author | edef <edef@unfathomable.blue> | 2022-05-03 00:19:40 +0000 |
---|---|---|
committer | edef <edef@unfathomable.blue> | 2022-05-03 00:19:40 +0000 |
commit | f36ba24431313b78e1a8f489714879fe313fbd29 (patch) | |
tree | ce6bc52d09de39c006bc90249c40767c3538ff3e | |
parent | f8829efb3b7967881253ff0cd2b22ddae2a7b589 (diff) | |
download | unf-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
-rw-r--r-- | ripple/fossil/src/lib.rs | 2 |
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); } |