michaelklishin/welle — pull request #11 by tcrayford (2013-04-20 15:18:08+00:00)
Title: don't always convert json keys to keywords

When welle deserializes json, it passes true into cheshire so that cheshire converts all keys from json maps into keywords in clojure. This can have some unexpected space problems for your jvm process, because keywords are never garbage collected.

My rough draft just adds a variable set with (binding) to the conversion namespace that is by default bound to true (because that doesn't break backwards compatability), but can be rebound by the user.

Thoughts? I didn't want to make this a variable you pass into each of the kv functions, as it seemed like they have enough arguments already.

The current workaround for this is to do your own deserialization, but that's somewhat cumbersome.

As discussed in https://github.com/michaelklishin/welle/issues/10