Open
Description
I'm raising this issue as suggested by @XiaoningLiu
Is your feature request related to a problem? Please describe.
Not exactly. But for improvements.
Describe the solution you'd like
We're currently dependent on xml2js library to parse XML. Fast-XML-Parser is a better alternative to this.
Additional context
Here is the comparison of both packages to parse XML data.
file size | fxp 3.0 parser (rps) | xml2js 0.4.19 (rps) |
---|---|---|
1.5k | 14032.09323 | 4615.930805 |
1.5m | 13.23366098 | 5.90682005 |
13m | 1.135582008 | -1 |
1.3k with CDATA | 43160.52342 | 8398.556349 |
1.3m with CDATA | 52.68877009 | 7.966000795 |
1.6k with cdata,prolog,doctype | 41433.98547 | 7872.399268 |
98m | 0.2600104004 | -1 |
In the below chart, X-axis is about XML data size, and Y-axis is for throughput or number of parses per second.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment