You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
The idea is shamlessly taken from
apache/datafusion#21084, which improved CI
runtimes there significantly (and also makes a real difference in
performance).
Fetching the available parallelism isn't free, both because it might
generate a stack trace and because it might end up doing a bunch of
work, its even called out in its
[docs](https://doc.rust-lang.org/std/thread/fn.available_parallelism.html).
---------
Signed-off-by: Adam Gutglick <adam@spiraldb.com>
Copy file name to clipboardExpand all lines: clippy.toml
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,5 +12,6 @@ disallowed-types = [
12
12
13
13
disallowed-methods = [
14
14
{ path = "itertools::Itertools::counts", reason = "It uses the default hasher which is slow for primitives. Just inline the loop for better performance.", allow-invalid = true },
15
-
{ path = "std::result::Result::and", reason = "This method is a footgun, especially when working with `Result<Validity>`.", allow-invalid = true },
15
+
{ path = "std::result::Result::and", reason = "This method is a footgun, especially when working with `Result<Validity>`." },
16
+
{ path = "std::thread::available_parallelism", reason = "This function might do an unbounded amount of work, use `vortex_utils::parallelism::get_available_parallelism instead" },
0 commit comments