[
https://issues.apache.org/jira/browse/COUCHDB-399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brian Candler updated COUCHDB-399:
----------------------------------
Attachment: main.js.patch
> [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
> 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.