ptaoussanis/nippy — pull request #3 by moonranger (2012-12-04 02:07:47+00:00)
Title: Use `into {}` instead of `apply hash-map`

I use nippy in production and found an OOM issue caused by the deserialization of a huge map, after monitoring the application for a while, I found it is caused by nippy.

For huge maps, `apply` may cause OOM, because it will realize all the elements of the arglist seq, and construct an `Object[]` to hold them.

I changed this line and use `(into {} ...)` instead of `(apply hash-map ...)`, and it works. The OOM issue could be avoided by this.