|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
01-17-2009 04:25
From all I can tell, strings take up half again as much storage space as keys on average (as determined by llGetFreeMemory()), for the same character length.
Can anyone confirm or refute this? Any ideas why? I was thinking they might assume keys hold only ASCII characters so they take only one byte per character, but then they should be half as big, not two-thirds.....
|
|
Viktoria Dovgal
…
Join date: 29 Jul 2007
Posts: 3,593
|
01-17-2009 05:16
Would have to probably ask Babbage or someone like that for the details, but Mono does have a fancy-pants System.Guid class that they could be using for keys.
eta: That would throw a FormatException for a malformed one and LSL takes it without complaint, but there could still be weirdness based on a subclass of that or something, under the covers.
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-17-2009 13:27
the easy test would be to max out the script memory using keys and then strings... track with a counter
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
|
01-17-2009 13:31
From: Hewee Zetkin From all I can tell, strings take up half again as much storage space as keys on average (as determined by llGetFreeMemory()), for the same character length...... Support for multi-byte character sets?
|