From fba01fb05f3b04f1253f80693f5b221be2af4d9b Mon Sep 17 00:00:00 2001 From: jvdd Date: Mon, 15 Jan 2024 13:13:03 +0100 Subject: [PATCH 1/2] :arrow_up: update dependencies --- Cargo.toml | 8 ++++---- downsample_rs/Cargo.toml | 6 +++--- downsample_rs/src/lib.rs | 1 + 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index bc18a23..184e8c8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,10 +9,10 @@ license = "MIT" [dependencies] downsample_rs = { path = "downsample_rs", features = ["half"]} -pyo3 = { version = "0.19", features = ["extension-module"] } -numpy = { version = "0.19", features = ["half"] } -half = { version = "2.1", default-features = false } -paste = { version = "1.0.9", default-features = false } +pyo3 = { version = "0.20", features = ["extension-module"] } +numpy = { version = "0.20", features = ["half"] } +half = { version = "2.3.1", default-features = false } +paste = { version = "1.0.14", default-features = false } [lib] name = "tsdownsample" diff --git a/downsample_rs/Cargo.toml b/downsample_rs/Cargo.toml index ca0ee16..107469b 100644 --- a/downsample_rs/Cargo.toml +++ b/downsample_rs/Cargo.toml @@ -9,13 +9,13 @@ license = "MIT" [dependencies] # TODO: perhaps use polars? argminmax = { version = "0.6.1", features = ["half"] } -half = { version = "2.1", default-features = false , features=["num-traits"], optional = true} -num-traits = { version = "0.2.15", default-features = false } +half = { version = "2.3.1", default-features = false , features=["num-traits"], optional = true} +num-traits = { version = "0.2.17", default-features = false } once_cell = "1" rayon = { version = "1.8.0", default-features = false } [dev-dependencies] -rstest = { version = "0.18.1", default-features = false } +rstest = { version = "0.18.2", default-features = false } rstest_reuse = { version = "0.6", default-features = false } criterion = "0.5.1" dev_utils = { path = "dev_utils" } diff --git a/downsample_rs/src/lib.rs b/downsample_rs/src/lib.rs index 1e222c0..409294d 100644 --- a/downsample_rs/src/lib.rs +++ b/downsample_rs/src/lib.rs @@ -18,6 +18,7 @@ pub(crate) mod types; use once_cell::sync::Lazy; use rayon::{ThreadPool, ThreadPoolBuilder}; +// Inspired by: https://github.com/pola-rs/polars/blob/9a69062aa0beb2a1bc5d57294cac49961fc91058/crates/polars-core/src/lib.rs#L49 pub static POOL: Lazy = Lazy::new(|| { ThreadPoolBuilder::new() .num_threads( From efa1850e33b46bc1f396458551b01f7101c0776a Mon Sep 17 00:00:00 2001 From: jvdd Date: Mon, 15 Jan 2024 13:24:40 +0100 Subject: [PATCH 2/2] :arrow_up: update codspeed benchmarking action --- .github/workflows/codspeed.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml index c9e31cb..7475832 100644 --- a/.github/workflows/codspeed.yml +++ b/.github/workflows/codspeed.yml @@ -43,6 +43,6 @@ jobs: # - run: rm tests/__init__.py - name: Run CodSpeed benchmarks - uses: CodSpeedHQ/action@v1 + uses: CodSpeedHQ/action@v2 with: run: pytest tests/benchmarks/ --codspeed