Details
-
Sub-task
-
Status: Patch Available
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
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.
Attachments
Issue Links
- links to