[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Scheme-reports] mutable unicode strings



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@x   http://per.bothner.com/

_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports