You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Kevin Risden (Jira)" <ji...@apache.org> on 2022/10/15 21:21:00 UTC

[jira] [Assigned] (SOLR-15561) Write escaped strings in SolrJSONWriter to a StringBuilder before the writer.

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

Kevin Risden reassigned SOLR-15561:
-----------------------------------

    Assignee: Kevin Risden

> Write escaped strings in SolrJSONWriter to a StringBuilder before the writer.
> -----------------------------------------------------------------------------
>
>                 Key: SOLR-15561
>                 URL: https://issues.apache.org/jira/browse/SOLR-15561
>             Project: Solr
>          Issue Type: Sub-task
>            Reporter: Mark Robert Miller
>            Assignee: Kevin Risden
>            Priority: Minor
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> As mentioned in comments:
> // it might be more efficient to use a stringbuilder or write substrings
> // if writing chars to the stream is slow.
> It turns out this is the case. Generates more garbage, less efficient, can vary depending on what exactly ends up backing it.
> Works better to reuse a StringBuilder and then dump that to the writer.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org