when using LATIN1 String, and
> the performance will not be good.
>
> --
> 发件人:Brett Okken
> 发送时间:2025年6月30日(周一) 11:39
> 收件人:"温绍锦(高铁)"
> 抄 送:"core-libs-dev"
> 主 题:Re: Eliminate unnecessary bu
On 29/06/2025 17:03, wenshao wrote:
BufferedWriter -> OutputStreamWriter -> StreamEncoder
In this call chain, BufferedWriter has a char[] buffer, and
StreamEncoder has a ByteBuffer. There are two layers of cache here, or
the BufferedWriter layer can be removed.
LATIN1 (byte[]) -> UTF16 (ch
Maybe another option would be to implement BufferedWriter with a
StringBuilder rather than a char[]. This would remove the force to utf-16
On Sun, Jun 29, 2025 at 10:36 PM Brett Okken
wrote:
> Is StreamEncoder buffering content to only write to the underlying
> OutputStream when some threshold i
Is StreamEncoder buffering content to only write to the underlying
OutputStream when some threshold is hit? While the layers of conversions
are unfortunate, it seems there could be negative performance implications
of having many extremely small writes (such as 1 character/byte) at a time
to the un