[
https://issues.apache.org/jira/browse/JENA-713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14032780#comment-14032780
]
Andy Seaborne commented on JENA-713:
------------------------------------
FmtUtils patch applied, thank you - it's going to be big help to avoid
StringBuilder churning.
I went one small step further and put in reusing/resetting one StringBuilder
used for the whole basic pattern and also did some tidying up. I didn't go as
far as accumulate the whole BGP then output because sometimes there are huge
data patterns to output.
FYI:
There is a streaming way to write Turtle-related syntaxes based on interface
{{NodeFormatter}}. NodeFormatter arrived with the new(-ish) data syntax output
rewrite for RDF 1.1 (and for efficiency).
> 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)