Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgraded dependencies with no_std support #44

Merged
merged 1 commit into from
Sep 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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."
@@ -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]
3 changes: 1 addition & 2 deletions benches/iter_map_collect.rs
Original file line number Diff line number Diff line change
@@ -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()
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;
@@ -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)