eed3si9n / scalaxb

scalaxb is an XML data binding tool for Scala.
http://scalaxb.org/
MIT License
332 stars 154 forks source link

Is scalaxb a good fit for large XML files? #656

Closed phdoerfler closed 1 month ago

phdoerfler commented 1 month ago

Unless I'm missing something, scalaxb relies on NodeSeq which is commonly implemented in a DOM-like fashion. With JAXB it is trivial to use StAX under the hood, allowing to process large XML files (200 MB+) with very little memory since the unmarshalled object graph is very small in comparison to the DOM overhead in terms of heap space. What's the equivalent in scalaxb?