incubator-couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Candler (JIRA)" <j...@apache.org>
Subject [jira] Created: (COUCHDB-399) [PATCH] speed up toJSON()
Date Thu, 02 Jul 2009 14:33:47 GMT
[PATCH] speed up toJSON()
-------------------------

                 Key: COUCHDB-399
                 URL: https://issues.apache.org/jira/browse/COUCHDB-399
             Project: CouchDB
          Issue Type: Improvement
          Components: JavaScript View Server
         Environment: {"couchdb":"Welcome","version":"0.10.0a787397"}

            Reporter: Brian Candler
            Priority: Minor


This patch is a trivial optimisation of the toJSON() function in main.js

It provides a surprising speedup. For example, in my real-world app, it reduces indexing time
of ~3,800 docs from 80 seconds to 60 seconds. And using the benchmark script I posted to dev@,
I see:

2.877 -> 2.062 secs  (3000 docs, emit one k/v per doc)
13.522 -> 7.585 secs (3000 docs, emit 10 simple k/v per doc)
19.049 -> 12.714 secs (3000 docs, emit 10 compound k/v per doc)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message