Re: [Scheme-reports] mutable unicode strings
Per Bothner 03 Jul 2014 02:31 UTC
On 07/02/2014 07:16 PM, Bear wrote:
> Are there any extant examples of 3-byte code units in strings?
> I would find that - interesting.
I too would be surprised.
What might make sense is packing 3 20-bit (or 21-bit) characters in a 64-bit long.
That would use 2.67 bytes per character and be quite friendly to
modern hardware. Almost certainly faster that using 32 bits per character,
due to better locality.
Probably not a good choice for Kawa, though, since I think it is more important
to implement the java.lang.CharSequence interface efficiently.
--
--Per Bothner
per@bothner.com http://per.bothner.com/
_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports