> On Jul 2, 2015, at 6:23 AM, Jan Lehnardt <j...@apache.org> wrote:
> 
> 
>> On 02 Jul 2015, at 12:19, Hermann Norpois <hnorp...@gmail.com> wrote:
>> 
>> Hello,
>> 
>> how does couchdb parse the json-documents? Which tool is used? Is it a
>> known library or is it a couchdb built in function?
> 
> We use https://github.com/apache/couchdb-jiffy a C-implementation of a JSON
> parser.
> 
> Although there is now a discussion to move back to mochijson2, which is
> native Erlang: https://issues.apache.org/jira/browse/COUCHDB-2732
> 
> Best
> Jan
> —

(moving to dev@)

Hiya Jan, we could be discussing a jiffy -> mochijson2 switch, but that’s not 
the topic of COUCHDB-2732. The issue there is the locking required by the NIF 
we use for JSON _collation_, which is something Filipe wrote for us back in 
COUCHDB-1186.

On the topic of JSON collation, the findings by the IBM team are that pure 
Erlang collation outperforms the existing NIF, but that a NIF taking advantage 
of thread local storage is better still. Cheers,

Adam

Reply via email to