On Nov 3, 2008, at 10:34, Jan Lehnardt wrote:


On Nov 3, 2008, at 10:26, Ask Bjørn Hansen wrote:

I wonder if some of the slowness is from running it through JS? Perl has an extremely fast JSON parser (JSON::XS), would there be any potential optimization in using an alternate view language like that - or is most of the time spent elsewhere?

Another part is the Erlang to JSON conversion that is known to be slow-ish. I don't know which side of the conversion weighs more though. We are working with the Erlang community and developers to get a C-based JSON encoder into Erlang. Since building a view server is relatively straightforward, giving a Perl version a shot is probably worth it.

Which Erlang version are you running? R11B-x is known for causing view-build slowness.
R12B-3 and R12B-4 are good

In addition: 
http://wiki.apache.org/couchdb/FrequentlyAskedQuestions#slow_view_building

Cheers
Jan
--

Reply via email to