[ 
https://issues.apache.org/jira/browse/JENA-713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14032799#comment-14032799
 ] 

Kristian Rosenvold commented on JENA-713:
-----------------------------------------

I did some additional measurements, and there is a clear further gain to be had 
if one could avoid the StringBuffer entirely, since this kind of algorithm is 
mostly memory-bound; avoiding copying all the data twice is actually a 
significant part of further bumping performance. I looked into using something 
like java.lang.Appendable, which unfortunately throws exceptions. I'll let this 
simmer a bit further and look into the classes you mention.

> Reduce costly string operations in utility class
> ------------------------------------------------
>
>                 Key: JENA-713
>                 URL: https://issues.apache.org/jira/browse/JENA-713
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: ARQ
>            Reporter: Kristian Rosenvold
>            Assignee: Andy Seaborne
>         Attachments: rev2.patch, testCase.patch
>
>
> The enclosed patch improves performance for all kinds of string-serialization 
> of rdf graphs. The patch improves the performance of "UpdateRequest.output" 
> by approx. 30%, which makes remote sparql queries  a fair bit faster. The 
> patch will probably improve performance across the board.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to