Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

XML parsing Dependency migration #1539

Open
amitguptagwl opened this issue Oct 17, 2019 · 0 comments
Open

XML parsing Dependency migration #1539

amitguptagwl opened this issue Oct 17, 2019 · 0 comments

Comments

@amitguptagwl
Copy link

Short description of the problem:

The current library we are using to parse XML into JS object gives incorrect results when it parses long XML. It is also slow. Here is the comparison;

Benchmark

What behavior are you expecting?

I would like to suggest to migrate to fast-XML-parser.

Here is the tabular representation.

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

As you can notice, in case of large file xml2js gives an error.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant