You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Mark Robert Miller (Jira)" <ji...@apache.org> on 2021/07/25 22:54:00 UTC

[jira] [Updated] (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 ]

Mark Robert Miller updated SOLR-15561:
--------------------------------------
    Priority: Minor  (was: Major)

> 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
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Mark Robert Miller
>            Priority: Minor
>
> 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.3.4#803005)

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