S
Steve
Hi All,
I coding am application that needs to be VERY time and space
efficient. I have a class like:
class A{
ushort myNum;
.....
}
which contains a number datatype.
I will have thousands of instances of class A and for the vast
majority of instances, the myNum value will fit in a ushort data type
(<65535), but for a few it will be greater.
How can I get around this in an efficient manner?
* Use an object reference and convert to a bigger datatype in the
event of an overflow?
cheers,
Steve.
I coding am application that needs to be VERY time and space
efficient. I have a class like:
class A{
ushort myNum;
.....
}
which contains a number datatype.
I will have thousands of instances of class A and for the vast
majority of instances, the myNum value will fit in a ushort data type
(<65535), but for a few it will be greater.
How can I get around this in an efficient manner?
* Use an object reference and convert to a bigger datatype in the
event of an overflow?
cheers,
Steve.