-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: improve performance when linking files using rayon
#985
Conversation
rayon
@@ -375,7 +375,7 @@ impl<F: ProgressFormatter> IndicatifReporterInner<F> { | |||
.iter() | |||
.map(|&idx| (self.package_sizes[idx], &self.package_names[idx])); | |||
|
|||
let largest_package = package_iter.max_by_key(|(size, _)| *size); | |||
let largest_package = package_iter.min_by_key(|(size, _)| *size); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeaaah I added this to make it look for the users as if more stuff is happening. The biggest package will take the longest. This changes that the user instead sees way more packages in the loading bar.
Description