Skip to content

Commit

Permalink
Now we are truly single-threaded when threads = 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Mar 15, 2020
1 parent 394e261 commit b7ed2bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ dua interactive

#### ✅ v2.3.5 Fast exit from interactive mode for a responsive exit; dependency updates (except jwalk)

#### ✅ v2.3.4 YANKED - jwalk 0.5.0 shows a performance regression
#### ✅ v2.3.4 YANKED - jwalk 0.5.0 wasn't used correctly which led to a performance regression

#### ✅ v2.3.3 YANKED - journey tests failed to changed method signature

Expand Down
8 changes: 4 additions & 4 deletions src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ impl WalkOptions {
}
})
})
.parallelism(if self.threads == 0 {
jwalk::Parallelism::RayonDefaultPool
} else {
jwalk::Parallelism::RayonNewPool(self.threads)
.parallelism(match self.threads {
0 => jwalk::Parallelism::RayonDefaultPool,
1 => jwalk::Parallelism::Serial,
_ => jwalk::Parallelism::RayonNewPool(self.threads),
})
}
}
Expand Down

0 comments on commit b7ed2bb

Please sign in to comment.