Skip to content

Commit 755c93b

Browse files
authored
Merge pull request #8 from nephi-dev/speed-increase
Speed increase(again)
2 parents 4d4091c + 03d16bb commit 755c93b

File tree

4 files changed

+5
-64
lines changed

4 files changed

+5
-64
lines changed

Cargo.lock

Lines changed: 1 addition & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rxml"
3-
version = "2.3.1"
3+
version = "2.3.2"
44
edition = "2021"
55

66
[lib]
@@ -9,5 +9,4 @@ crate-type = ["cdylib"]
99

1010
[dependencies]
1111
pyo3 = "0.23.5"
12-
quick-xml = "0.37.2"
13-
rayon = "1.10"
12+
quick-xml = "0.37.2"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ classifiers = [
2222
"Typing :: Typed",
2323
"License :: OSI Approved :: MIT License",
2424
]
25-
version = "2.3.1"
25+
version = "2.3.2"
2626

2727

2828
[tool.maturin]

src/entities.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#![allow(clippy::only_used_in_recursion)]
22
use crate::f_str;
33
use pyo3::{prelude::*, types::PyType};
4-
use rayon::prelude::*;
54
use std::collections::HashMap;
65

76
#[derive(Clone, FromPyObject, IntoPyObject, Eq, PartialEq, Debug)]
@@ -187,12 +186,7 @@ impl Node {
187186
(f_str!("attrs"), HashmapTypes::Map(self.attrs.clone())),
188187
(
189188
f_str!("children"),
190-
HashmapTypes::Vec(
191-
self.children
192-
.par_iter()
193-
.map(|child| child.to_dict())
194-
.collect(),
195-
),
189+
HashmapTypes::Vec(self.children.iter().map(|child| child.to_dict()).collect()),
196190
),
197191
(
198192
f_str!("text"),

0 commit comments

Comments
 (0)