You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2007/10/10 20:24:50 UTC

[jira] Updated: (SOLR-377) speed increase for writers

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

Yonik Seeley updated SOLR-377:
------------------------------

    Attachment: fastwriter.patch

attaching patch... adds an optimized unsynchronized buffered writer, changes some ResponseWriters use of strings to characters, removes buffering of string in JSON, etc.

Speed differences with *very* large documents:
json: 24% faster
ruby: 500% faster (ruby didn't buffer in a StringBuilder like JSON did)
python: 0% (bottleneck for these huge fields is buffering in the StringBuilder to see if we should prepend a 'u'... always prepending a 'u' and not buffering resulted in a ~20% improvement)
xml: 8% faster

With smaller documents, the speedups are likely to be greater because small writes like value separators would matter more.

If there are no objections, I'll commit in a few days.

> speed increase for writers
> --------------------------
>
>                 Key: SOLR-377
>                 URL: https://issues.apache.org/jira/browse/SOLR-377
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Yonik Seeley
>         Attachments: fastwriter.patch
>
>
> When solr is writing the response of large cached documents, the bottleneck is string encoding.
> a buffered writer implementation that doesn't do any synchronization could offer some good speedups.

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