quick-xml icon indicating copy to clipboard operation
quick-xml copied to clipboard

Problem with `overlapped-lists` that is enabled by the dependency

Open pacak opened this issue 5 months ago • 1 comments

So we are using quick-xml to parse a bunch of big (tens if megabytes) xml files. Works great, easy to use. pretty fast to run - under a second in release mode. And it slows down to a crawl (parsing takes several hours) when one of our dependencies enables overlapped-lists - which gets propagated to our code due to dependency unification.

Is there any way to disable overlapped-lists functionality for one specific deserializer?

Current workaround is for our code to depend on an older version of quick-xml, but it causes its own problems.

pacak avatar Jul 27 '25 17:07 pacak

No, currently that is impossible. The best solution would to contribute to your dependencies to disable overlapped-lists (and encoding) features, because they are inteded to use by applications and not library code.

You may open a PR that will add option to deserializer to disable ability to buffer events.

Mingun avatar Jul 27 '25 20:07 Mingun