[ 
https://issues.apache.org/jira/browse/SOLR-486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588512#action_12588512
 ] 

Noble Paul commented on SOLR-486:
---------------------------------

performance numbers 
=====================
bin vs. xml read performance : ~3 times faster
bin vs. xml write performance : ~2.5 times faster
datasize : 35% less
======================
The test: 
The same operation is performed 100 times and an average is taken. Before the 
execution, a warmup run is performed.

The output of a faceted query is taken out (xml).The size of the xml is 15.7KB. 
It is loaded into memory and unmarshalled using XMLResponseParser . Then the 
same object is written to xml using XMLWriter 

The same dataobject is marshalled to byte[](binary) using NamedListCodec. The 
datasize is 10.47KB . Then it is unmarshalled using NamedListCodec 





> Support binary formats for QueryresponseWriter
> ----------------------------------------------
>
>                 Key: SOLR-486
>                 URL: https://issues.apache.org/jira/browse/SOLR-486
>             Project: Solr
>          Issue Type: Improvement
>          Components: clients - java, search
>            Reporter: Noble Paul
>            Assignee: Yonik Seeley
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: SOLR-486.patch, SOLR-486.patch, SOLR-486.patch, 
> SOLR-486.patch, SOLR-486.patch, SOLR-486.patch
>
>
> QueryResponse writer only allows text data to be written.
> So it is not possible to implement a binary protocol . Create another 
> interface which has a method 
> write(OutputStream os, SolrQueryRequest request, SolrQueryResponse response)

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

Reply via email to