I am using PlayJsonFormats in my application to parse scala objects to Json format. But it is very memory intensive and cpu consuming. Is there any alternative for it which is less memory intensive and less cpu consuming.
1 Answer
For more efficient parsing & serialization of JSON from UTF-8 bytes to Scala case classes & collections I would recommend jsoniter-scala.
Here are benchmarks that compare it vs. most popular Scala JSON libraries: circe, jackson-module-scala & play-json.
Alter and run them for your messages on your env. or just see results for Scala 2.12.4 with JDK 8 & JDK 9 accordingly.
very memory intensive and cpu consuming
.