30.03.2010, 14:55
I consider some giant values saving as hex.. would that optimise speed along with files and array sizes?
Main example for everyone :
Money lets say as max can be(as max amount that can be saved.. althought maybe i will use it as "unsigned" by adding 31(-1) bit int all the time)
or
difference - 2 charaters for file and array is now free.
Reading example :
Currently writing with hexadecimal...
Written with hexadecimal.. no problems found to date.
Main example for everyone :
Money lets say as max can be(as max amount that can be saved.. althought maybe i will use it as "unsigned" by adding 31(-1) bit int all the time)
Код:
2 147 483 647
Код:
7FFF FFFF
Reading example :
Код:
sscanf("Money 7FFFFFFF","{s}h",Player money);
Written with hexadecimal.. no problems found to date.