pouchdb/pouchdb — pull request #3188 by nolanlawson (2014-12-16 04:24:22+00:00)
Title: (#3188) - WIP - fall back from JSON to vuvuzela

If this is green, then I will provide performance numbers to justify it.

It seems we can get a tiny boost in performance of `temp-views` (11258ms -> 11077ms in Chrome) by using the regular JSON parse/stringify and only falling back to vuvuzela if we get a recursion error in a try/catch. The only question marks for me are:

1. can we even catch a recursion error? this might break on different platforms, but if so Travis will tell us.
2. does the cost of not being able to inline the try/catch function outweigh the benefits of using the native JSON.parse?