couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Lehnardt (JIRA)" <j...@apache.org>
Subject [jira] Closed: (COUCHDB-399) [PATCH] speed up toJSON()
Date Fri, 24 Jul 2009 16:09:14 GMT

     [ https://issues.apache.org/jira/browse/COUCHDB-399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jan Lehnardt closed COUCHDB-399.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 0.10

applied in r797548

> [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
>             Fix For: 0.10
>
>         Attachments: main.js.patch
>
>
> 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