Using other formats than JSON
Would it be easy to replace the JSON decoding/encoding of documents before they reach the view engine?
I've experimented with profiling my application and found out that it spent about 20-40% cycles just parsing JSON in my memcached driver (for nodejs). And there is a lot of traffic between the application and couchbase.
I've done some measurements serializing my data using msgpack instead and have seen about 55% of the original size of the serialized JSON. My documents have a lot of time stamps and arrays (which is better suited for msgpack).
I don't know about the speed of the parser for msgpack. But the cut in size would alone be worth the effort.
What are the files /opt/couchbase/share/couchdb/server/main.js and /opt/couchbase/share/couchdb/server/main-coffee.js used for? Would it be enough to replace main.js with an other parser?
I would really like to try experimenting using more efficient serializers.