Skip to content

Commit

Permalink
Mildly optimize progress performance…
Browse files Browse the repository at this point in the history
…maybe there is a lot of error in the measurements, but it's a bit
faster with different settings for atomics.
  • Loading branch information
Byron committed May 29, 2021
1 parent 939af68 commit ffdb0c2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/aggregate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub fn aggregate(
write!(
err,
"Enumerating {} entries\r",
shared_count.load(Ordering::Relaxed)
shared_count.load(Ordering::Acquire)
)
.ok();
}
Expand Down

0 comments on commit ffdb0c2

Please sign in to comment.