8219196: DataOutputStream.writeUTF may throw unexpected exceptions
Brian Burkhalter
brian.burkhalter at oracle.com
Tue Mar 19 19:35:53 UTC 2019
> On Mar 19, 2019, at 12:06 PM, Martin Buchholz <martinrb at google.com> wrote:
>
> On Tue, Mar 19, 2019 at 11:12 AM Brian Burkhalter <brian.burkhalter at oracle.com <mailto:brian.burkhalter at oracle.com>> wrote:
>
>> On Mar 18, 2019, at 1:03 PM, Martin Buchholz <martinrb at google.com <mailto: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.
Probably I should hack up a JMH to check.
>
>
> 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?)
Will check out.
Thanks ...
More information about the core-libs-dev
mailing list