Proposal for new public class: java.io.CharSequenceReader

Bernd Eckenfels ecki at zusammenkunft.net
Sat Sep 28 17:59:41 UTC 2024




Markus Karg schrieb am 28.09.2024 18:15 (GMT +02:00):
> Dear Sirs,
> for performance reasons, hereby I like to propose the new public class
> java.io.CharSequenceReader
> 
I like the idea and missed it in the past.

while we are at it, also support a char[] constructor (since this
char[] does not implement CharSequence)

You hinted at it, but just to make it explicit, user mode implementations
cant do the needed optimizations to avoid the char[] clone.

Gruss
Bernd
> 




More information about the core-libs-dev mailing list