Mercurial > public > mercurial-scm > hg
comparison rust/hg-core/src/dirstate_tree/status.rs @ 49845:e0c0545e2e55
branching: merge stable into default
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Wed, 04 Jan 2023 16:02:22 +0100 |
parents | c7fb9b74e753 c52435820bbd |
children | c15b415d1bff |
comparison
equal
deleted
inserted
replaced
49839:a9602a84a442 | 49845:e0c0545e2e55 |
---|---|
53 // threads makes `status` slower for each additional thread. | 53 // threads makes `status` slower for each additional thread. |
54 // We use `ok()` in case the global threadpool has already been | 54 // We use `ok()` in case the global threadpool has already been |
55 // instantiated in `rhg` or some other caller. | 55 // instantiated in `rhg` or some other caller. |
56 // TODO find the underlying cause and fix it, then remove this. | 56 // TODO find the underlying cause and fix it, then remove this. |
57 rayon::ThreadPoolBuilder::new() | 57 rayon::ThreadPoolBuilder::new() |
58 .num_threads(16) | 58 .num_threads(16.min(rayon::current_num_threads())) |
59 .build_global() | 59 .build_global() |
60 .ok(); | 60 .ok(); |
61 | 61 |
62 let (ignore_fn, warnings, patterns_changed): (IgnoreFnType, _, _) = | 62 let (ignore_fn, warnings, patterns_changed): (IgnoreFnType, _, _) = |
63 if options.list_ignored || options.list_unknown { | 63 if options.list_ignored || options.list_unknown { |