You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ Efficient XML-to-dict conversion backed by Rust.
36
36
37
37
## Features
38
38
39
-
`quick-xmltodict` is a Rust-backed XML-to-dict conversion package that is designed to be fast and efficient.
39
+
`quick-xmltodict` is a Rust-backed XML-to-dict conversion package designed to be fast and efficient.
40
40
It has a single function, `parse`, that takes an XML string and returns a Python dictionary.
41
41
You should be able to use this function as a drop-in replacement for the `xmltodict.parse` function from the original `xmltodict` package (used without any extra arguments).
42
42
Like `xmltodict`, `quick-xmltodict` follows [this](https://www.xml.com/pub/a/2006/05/31/converting-between-xml-and-json.html) schema for converting XML to JSON.
@@ -45,8 +45,8 @@ Like `xmltodict`, `quick-xmltodict` follows [this](https://www.xml.com/pub/a/200
45
45
46
46
## Performance
47
47
48
-
`quick-xmltodict`is currently about 2-5 times faster than `xmltodict`.
49
-
There are performance improvements to be made, so this difference is expected to increase.
48
+
Since `xmltodict`uses the non-validating C-based [expat](https://docs.python.org/3/library/pyexpat.html) parser from Python's standard library, it is already very fast.
49
+
`quick-xmltodict` is nonetheless about 2-5 times faster than `xmltodict`.
50
50
51
51
## Contributing
52
52
@@ -65,11 +65,11 @@ poetry run pytest
65
65
```
66
66
67
67
Be sure to run `poetry run maturin develop` after making changes to the Rust code.
68
-
Add the `-r` flag for a release build (for example if you want to run benchmarks).
68
+
Add the `-r` flag for a release build (for example, if you want to run benchmarks).
69
69
70
70
It's recommended to install the pre-commit hooks:
71
71
```bash
72
72
poetry run pre-commit install
73
73
```
74
74
75
-
This ensures that linting and formatting is run automatically on every commit.
75
+
This ensures that linting and formatting are run automatically on every commit.
0 commit comments