User:SignpostMarv Martin/LSL Memory
Jump to navigation
Jump to search
<lsl>string vector2string(vector foo) {
return (string)foo;
} list vector2strided(vector foo) {
return [foo.x,foo.y,foo.z];
} vector rand() {
return <llFrand(3.402823466E+38),llFrand(3.402823466E+38),llFrand(3.402823466E+38)>;
} list store; integer x; default {
state_entry() { for(x=0;x>-1;++x) { llOwnerSay((string)x); store += [rand()]; } }
}</lsl>
Method | Stored (mono) | Stored (LSL) |
---|---|---|
+= [rand()] | 2164 | 342 |
+= [vector2string(rand())] | 200 | 46 |
+= vector2strided(rand()) | 1010 | 161 |
ZERO_VECTOR | ||
+= [ZERO_VECTOR] | 2183 | 343 |
+= [<.0,.0,.0>] | 2183 | 343 |
+= ["<.0,.0,.0>"] | 7636 | 336 |
+= ["<0,0,0>"] | 7637 | 388 |
+= [vector2string(ZERO_VECTOR)] | 797 | 202 |
+= [vector2string(<.0,.0,.0>)] | 797 | 202 |
+= vector2strided(ZERO_VECTOR) | 1010 | 161 |
+= vector2strided(<.0,.0,.0>) | 1010 | 161 |
+= [.0,.0,.0] | 1019 | 161 |
+= [0,0,0] | 1019 | 161 |