diff --git a/Cargo.lock b/Cargo.lock index 45e870a59..8677c62ce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -593,7 +593,7 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" [[package]] name = "rustworkx" -version = "0.14.0" +version = "0.14.1" dependencies = [ "ahash", "fixedbitset", @@ -619,7 +619,7 @@ dependencies = [ [[package]] name = "rustworkx-core" -version = "0.14.0" +version = "0.14.1" dependencies = [ "ahash", "fixedbitset", diff --git a/Cargo.toml b/Cargo.toml index c5bc86d93..75733c260 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ members = [ ] [workspace.package] -version = "0.14.0" +version = "0.14.1" edition = "2021" rust-version = "1.64" authors = ["Matthew Treinish "] @@ -57,7 +57,7 @@ rand_pcg.workspace = true rayon.workspace = true serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -rustworkx-core = { path = "rustworkx-core", version = "=0.14.0" } +rustworkx-core = { path = "rustworkx-core", version = "=0.14.1" } [dependencies.pyo3] version = "0.20.2" diff --git a/releasenotes/notes/prepare-0.14.1-e5065553a44eb035.yaml b/releasenotes/notes/prepare-0.14.1-e5065553a44eb035.yaml new file mode 100644 index 000000000..139eb8e1a --- /dev/null +++ b/releasenotes/notes/prepare-0.14.1-e5065553a44eb035.yaml @@ -0,0 +1,28 @@ +--- +prelude: > + The rustworkx 0.14.1 release is a small bug fix release that fixes two issues, + first it address a performance regression that was introduced in 0.12.0 + for accessing items of custom sequence return types such as + :class:`.NodeIndices`. Secondly, it fixes a build configuration issue for + Linux ppc64le with Python 3.12 and 3.8 which prevented publishing wheels in + 0.14.0. + +fixes: + - | + Fixed an performance issue with the custom sequence return type classes' + ``__getitem__`` method (used for element access and iteration). When support + for slice access was added to these classes in rustworkx 0.12.0 this was + previously implemented in a way that added unnecessary overhead to index + based access, which has been corrected. This fix applies to ``__getitem__`` + on: + + * :class:`.BFSSuccessors` + * :class:`.BFSPredecessors` + * :class:`.NodeIndices` + * :class:`.EdgeIndices` + * :class:`.EdgeList` + * :class:`.WeightedEdgeList` + * :class:`.Chains` + + See `#1090 `__ for more + details. diff --git a/setup.py b/setup.py index cb8f99872..ea4811345 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ def readme(): graphviz_extras = ["pillow>=5.4"] PKG_NAME = os.getenv("RUSTWORKX_PKG_NAME", "rustworkx") -PKG_VERSION = "0.14.0" +PKG_VERSION = "0.14.1" PKG_PACKAGES = ["rustworkx", "rustworkx.visualization"] PKG_INSTALL_REQUIRES = ["numpy>=1.16.0,<2"] RUST_EXTENSIONS = [RustExtension("rustworkx.rustworkx", "Cargo.toml",