Scala seems to be very good at serializing scala.xml.Elem (on my machine it performs approximately 150k per seconds), however deserialization seems to be quite slow (10k per second) using XML.loadString
What is the fastest alternative?
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Whilst its not an answer to faster scala.xml.Elem deserializing Scales Xml performs very well with a far lower memory usage. It provides a large range of functionality that’s not present in the default library either.
Scales lets you configure the trade-offs between significantly lower memory usage and parsing performance. The default aims to strike a great balance.