8219196: DataOutputStream.writeUTF may throw unexpected exceptions
martinrb at google.com
Tue Mar 19 19:06:14 UTC 2019
On Tue, Mar 19, 2019 at 11:12 AM Brian Burkhalter <
brian.burkhalter at oracle.com> wrote:
> On Mar 18, 2019, at 1:03 PM, Martin Buchholz <martinrb at google.com> wrote:
> You've again caught me only half paying attention.
> Below is another attempt at micro-optimization (might be too tricky!), BUT:
> This has blossomed considerably from my original effectively one line
> change. ;-)
Feel free to ignore/postpone.
> Might there be any performance numbers on this version versus the one
> currently in the repo?
Nope, but they're the sort of non-tradeoff optimization that is known to
help and "can't hurt".
UTF-8 encoding is likely to always be performance sensitive.
(another thought: can we elide the creation of an intermediate byte and
write directly to the output?)
More information about the core-libs-dev