Re: Erlang vs JavaScript

2013-08-19 Thread nicholas a. evans
It seems like there might be several simple internalizing speedups, even before tackling the view server protocol or the couchjs view server, hinted at by Alexander's suggestion: On Fri, Aug 16, 2013 at 3:58 PM, Alexander Shorin kxe...@gmail.com wrote: Idea: move document metadata into separate

Re: Erlang vs JavaScript

2013-08-18 Thread Benoit Chesneau
On Fri, Aug 16, 2013 at 9:58 PM, Alexander Shorin kxe...@gmail.com wrote: On Fri, Aug 16, 2013 at 11:23 PM, Jason Smith j...@apache.org wrote: On Fri, Aug 16, 2013 at 4:49 PM, Volker Mische volker.mis...@gmail.com wrote: On 08/16/2013 11:32 AM, Alexander Shorin wrote: On Fri, Aug 16,

Re: Erlang vs JavaScript

2013-08-18 Thread Alexander Shorin
On Sun, Aug 18, 2013 at 10:22 AM, Benoit Chesneau bchesn...@gmail.com wrote: On Fri, Aug 16, 2013 at 9:58 PM, Alexander Shorin kxe...@gmail.com wrote: On Fri, Aug 16, 2013 at 11:23 PM, Jason Smith j...@apache.org wrote: On Fri, Aug 16, 2013 at 4:49 PM, Volker Mische volker.mis...@gmail.com

Re: Erlang vs JavaScript

2013-08-18 Thread Volker Mische
On 08/18/2013 08:42 AM, Alexander Shorin wrote: On Sun, Aug 18, 2013 at 10:22 AM, Benoit Chesneau bchesn...@gmail.com wrote: On Fri, Aug 16, 2013 at 9:58 PM, Alexander Shorin kxe...@gmail.com wrote: On Fri, Aug 16, 2013 at 11:23 PM, Jason Smith j...@apache.org wrote: On Fri, Aug 16, 2013 at

Re: Erlang vs JavaScript

2013-08-18 Thread Alexander Shorin
On Sun, Aug 18, 2013 at 3:54 PM, Volker Mische volker.mis...@gmail.com wrote: On 08/18/2013 08:42 AM, Alexander Shorin wrote: On Sun, Aug 18, 2013 at 10:22 AM, Benoit Chesneau bchesn...@gmail.com wrote: On Fri, Aug 16, 2013 at 9:58 PM, Alexander Shorin kxe...@gmail.com wrote: On Fri, Aug

Re: Erlang vs JavaScript

2013-08-18 Thread Robert Keizer
On 13-08-18 09:33 AM, Alexander Shorin wrote: On Sun, Aug 18, 2013 at 3:54 PM, Volker Mische volker.mis...@gmail.com wrote: On 08/18/2013 08:42 AM, Alexander Shorin wrote: On Sun, Aug 18, 2013 at 10:22 AM, Benoit Chesneau bchesn...@gmail.com wrote: On Fri, Aug 16, 2013 at 9:58 PM, Alexander

Re: Erlang vs JavaScript

2013-08-17 Thread JFC Morfin
At 11:49 16/08/2013, Volker Mische wrote: What if we split document metadata from document itself? E.g. pass _id, _rev and other system or meta fields with separate object. Their size much lesser than whole document, so it will be possible to fast decode this metadata and decide is doc need

Re: Erlang vs JavaScript

2013-08-16 Thread Volker Mische
On 08/15/2013 11:53 AM, Benoit Chesneau wrote: On Thu, Aug 15, 2013 at 11:38 AM, Jan Lehnardt j...@apache.org wrote: On Aug 15, 2013, at 10:09 , Robert Newson rnew...@apache.org wrote: A big +1 to Jason's clarification of erlang vs native. CouchDB could have shipped an erlang view server

Re: Erlang vs JavaScript

2013-08-16 Thread Benoit Chesneau
On Fri, Aug 16, 2013 at 11:05 AM, Volker Mische volker.mis...@gmail.comwrote: On 08/15/2013 11:53 AM, Benoit Chesneau wrote: On Thu, Aug 15, 2013 at 11:38 AM, Jan Lehnardt j...@apache.org wrote: On Aug 15, 2013, at 10:09 , Robert Newson rnew...@apache.org wrote: A big +1 to Jason's

Re: Erlang vs JavaScript

2013-08-16 Thread Alexander Shorin
On Fri, Aug 16, 2013 at 1:12 PM, Benoit Chesneau bchesn...@gmail.com wrote: I agree, (modulo the fact that I would replace a string by a binary ;) but that would be only possible if we extract the metadata (_id, _rev) from the JSON so couchdb wouldn't have to decode the JSON to get them.

Re: Erlang vs JavaScript

2013-08-16 Thread Volker Mische
On 08/16/2013 11:32 AM, Alexander Shorin wrote: On Fri, Aug 16, 2013 at 1:12 PM, Benoit Chesneau bchesn...@gmail.com wrote: I agree, (modulo the fact that I would replace a string by a binary ;) but that would be only possible if we extract the metadata (_id, _rev) from the JSON so couchdb

Re: Erlang vs JavaScript

2013-08-16 Thread Jason Smith
On Fri, Aug 16, 2013 at 4:49 PM, Volker Mische volker.mis...@gmail.comwrote: On 08/16/2013 11:32 AM, Alexander Shorin wrote: On Fri, Aug 16, 2013 at 1:12 PM, Benoit Chesneau bchesn...@gmail.com wrote: I agree, (modulo the fact that I would replace a string by a binary ;) but that would

Re: Erlang vs JavaScript

2013-08-16 Thread Alexander Shorin
On Fri, Aug 16, 2013 at 11:23 PM, Jason Smith j...@apache.org wrote: On Fri, Aug 16, 2013 at 4:49 PM, Volker Mische volker.mis...@gmail.com wrote: On 08/16/2013 11:32 AM, Alexander Shorin wrote: On Fri, Aug 16, 2013 at 1:12 PM, Benoit Chesneau bchesn...@gmail.com wrote: I agree, (modulo

Re: Erlang vs JavaScript

2013-08-15 Thread Jan Lehnardt
On Aug 15, 2013, at 10:09 , Robert Newson rnew...@apache.org wrote: A big +1 to Jason's clarification of erlang vs native. CouchDB could have shipped an erlang view server that worked in a separate process and had the stdio overhead, to combine the slowness of the protocol with the

Re: Erlang vs JavaScript

2013-08-15 Thread Benoit Chesneau
On Thu, Aug 15, 2013 at 11:38 AM, Jan Lehnardt j...@apache.org wrote: On Aug 15, 2013, at 10:09 , Robert Newson rnew...@apache.org wrote: A big +1 to Jason's clarification of erlang vs native. CouchDB could have shipped an erlang view server that worked in a separate process and had the

Re: Erlang vs JavaScript

2013-08-15 Thread Jan Lehnardt
On Aug 15, 2013, at 11:53 , Benoit Chesneau bchesn...@gmail.com wrote: On Thu, Aug 15, 2013 at 11:38 AM, Jan Lehnardt j...@apache.org wrote: On Aug 15, 2013, at 10:09 , Robert Newson rnew...@apache.org wrote: A big +1 to Jason's clarification of erlang vs native. CouchDB could have