Is scalaxb a good fit for large XML files? #658
Unanswered
phdoerfler
asked this question in
Q&A
Replies: 1 comment
-
I think scala-xml does have https://www.scala-lang.org/api/2.12.15/scala-xml/scala/xml/pull/index.html but as you mentioned scalaxb uses DOM-like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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?
Beta Was this translation helpful? Give feedback.
All reactions