[ 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-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org