Skip to content

Commit 2a6d74f

Browse files
authored
Merge pull request #45 from orxfun/example-revision
minor revision in bench example
2 parents e91cd1c + a146cef commit 2a6d74f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/bench_parallelization.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,9 @@ fn main() {
7272
(
7373
"Parallelized over DoublyList using orx_parallel",
7474
Box::new(move || {
75-
let imp_vec: DoublyList<_> = (0..args.len as usize).collect();
75+
let list: DoublyList<_> = (0..args.len as usize).collect();
7676

77-
imp_vec
78-
.into_par_x() // replace iter (into_iter_x) with par (into_par_x) to parallelize !
77+
list.par_x() // replace iter_ (into_iter_x) with par_x (into_par_x) to parallelize !
7978
.filter(|x| *x % 3 != 0)
8079
.map(|x| x + fibonacci(x % 1000))
8180
.filter(|x| x % 2 == 0)

0 commit comments

Comments
 (0)