Skip to content

Commit

Permalink
Merge pull request #44 from orxfun/upgraded-dependencies-with-no_std-…
Browse files Browse the repository at this point in the history
…support

upgraded dependencies with no_std support
  • Loading branch information
orxfun authored Sep 8, 2024
2 parents c3f0c64 + 424e6e3 commit a2af2ff
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
18 changes: 9 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "orx-parallel"
version = "1.10.0"
version = "1.11.0"
edition = "2021"
authors = ["orxfun <orx.ugur.arikan@gmail.com>"]
description = "A performant and configurable parallel computing library for computations defined as compositions of iterator methods."
Expand All @@ -10,14 +10,14 @@ keywords = ["parallel", "concurrency", "performance", "thread", "iterator"]
categories = ["concurrency", "algorithms"]

[dependencies]
orx-pseudo-default = "1.4"
orx-pinned-vec = "3.7"
orx-fixed-vec = "3.7"
orx-split-vec = "3.7"
orx-pinned-concurrent-col = "2.6"
orx-concurrent-bag = "2.6"
orx-concurrent-ordered-bag = "2.6"
orx-priority-queue = "1.3"
orx-pseudo-default = { version = "1.4", default-features = false }
orx-pinned-vec = "3.8"
orx-fixed-vec = "3.8"
orx-split-vec = "3.8"
orx-pinned-concurrent-col = "2.7"
orx-concurrent-bag = "2.7"
orx-concurrent-ordered-bag = "2.7"
orx-priority-queue = "1.4"
orx-concurrent-iter = "1.27"

[dev-dependencies]
Expand Down
3 changes: 1 addition & 2 deletions benches/iter_map_collect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ fn orx_parallel_vec(inputs: &[usize]) -> Vec<LargeOutput> {
.iter()
.filter(|x| *x % 3 > 0)
.map(|x| x + 1)
.into_con_iter()
.into_par()
.par()
.chunk_size(64)
.map(to_large_output)
.collect_x()
Expand Down
5 changes: 3 additions & 2 deletions benches/map_find_expensive.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use criterion::{black_box, criterion_group, criterion_main, BenchmarkId, Criterion};
use orx_parallel::*;
use rand::prelude::*;
use rand_chacha::ChaCha8Rng;
use rayon::iter::IntoParallelIterator;
Expand Down Expand Up @@ -44,12 +45,12 @@ fn rayon(inputs: &[u32]) -> Option<u32> {
}

fn orx_parallel_default(inputs: &[u32]) -> Option<u32> {
inputs.into_par().map(map).find(predicate)
inputs.par().map(map).find(predicate)
}

fn orx_parallel(inputs: &[u32], num_threads: usize, chunk_size: usize) -> Option<u32> {
inputs
.into_par()
.par()
.chunk_size(ChunkSize::Exact(NonZeroUsize::new(chunk_size).unwrap()))
.num_threads(num_threads)
.map(map)
Expand Down

0 comments on commit a2af2ff

Please sign in to comment.