eed3si9n / sjson-new

a typeclass based JSON codec that's backend independent
Apache License 2.0
36 stars 19 forks source link

Reduce object construction when object parsing #116

Closed craffit closed 3 years ago

craffit commented 4 years ago

After CPU profiling an sbt update run on a our multi-project setup, I observed ~20% time spent in map/Vector creation/destruction when parsing objects. This MR reduces the amount of objects created in that tight inner loop (our sbt update command went from 33s to 25s)

eed3si9n commented 4 years ago

Thanks for the contribution!