Difference between revisions of "User:Omei Qunhua"

From Second Life Wiki
Jump to navigation Jump to search
(ByteCode size measurements)
 
(List storage requirements)
Line 15: Line 15:
if(x<0);              13
if(x<0);              13
if(x==-1);            14
if(x==-1);            14
</pre>
'''List storage Requirements in Mono'''
<pre>
Integer                  16 bytes per integer
Float                    16 bytes per float
String                    18 plus 2 bytes per character
Key (stored as keys)    102 bytes (!!) per key
Key (stored as strings)  90 bytes per key
</pre>
</pre>

Revision as of 12:17, 28 December 2012

Mono Code Size Measurements Results from my own tests in December 2012

The following are based on accessing a local integer variable
Instruction      ByteCode size
++x;                  6 
x = !x;               7
if (~x);              7
x++;                  8
x=1;                  8
x+=1;                 10
x *= -1;              11
x<<1;                 12
if(x<0);              13
if(x==-1);            14

List storage Requirements in Mono

Integer                   16 bytes per integer
Float                     16 bytes per float
String                    18 plus 2 bytes per character
Key (stored as keys)     102 bytes (!!) per key
Key (stored as strings)   90 bytes per key