[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Scheme-reports] fresh empty strings
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 01/23/2012 07:03 AM, Andy Wingo wrote:
> On Mon 23 Jan 2012 14:27, Alaric Snell-Pym <alaric@x> writes:
>
>> Short strings might be represented in a single SSE2 vector register or
>> something
>
> The point of this nit-pick is that this is impossible -- strings of one
> character *cannot* be immediates.
>
> Regards,
That's just not true.
The size of immediate values varies from implementation to
implementation. Even allowing a full byte for a typetag,
in an implementation where immediates are 64-bits it's
possible to have immediate strings of up to 7 UTF8 values.
That's very short for a string, but worth it if you're
handling a lot of strings which are one word (in the language
sense).
You don't have to heap-allocate strings until can no longer
prove that you have only one reference to the string.
Bear
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJPHcAuAAoJEAOzWkqOibfNNGUH/2sElzwKBoVaDTR/cLZ+vbJ1
tWYhl9cm5FD+2LQdMTVHYafOLe6gypSyABS9lZqCJyUhvtQ0Wk1RDDkd0gjDHHcL
vujMvTpSgVye1stet0z8IUHLtOUvNJ3m/jqwLP4QrH58DQNycvWSFM64apcfdOek
fB+4nfkG4psuymXnwvu0ORcxsDg+5DYaLjIaBSyt7mfOWtMhAIr+/hwOT6/Nhbvl
/dfXaTJpmYmei6yia6fDTSO684p+5zPzIWEHzBlUI5eB8M2u9NnQTG+s3RKrkdVn
OTMhCZGt52I4xMJPynMw+ZHON8L9kqD9TkMTwSTI6fMFEu65MnOtj6yuowUI4ko=
=/Zts
-----END PGP SIGNATURE-----
_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports