Translate

2013-11-29

How to reduce memory need by 25%






The Sixit:

8 bits to a byte
4 bits to a nibble
6 bits to a Sixit (six bits = sixit)

Bit number - value - dataValue
0 - 0 - what follows is as usual
0 - 1 - what follows is a sixit
     - - or can be kept as an extra bit for future use.  Backward compatibility might not be possible.  Might be useful for systems being / to be developed, especially for Virtual Reality softward.  The first bit can be kept for future use.  Future-compatibility.
1 - 0 - the first nibble of a byte
1 - 1 - the second nibble of a byte
2, 3, 4, 5 - whateever - the data value of the nibble.


A byte (8 bits) has an ASCII range of 0 - 255.
This is considered to be 2 nibbles (each of 4 bits).
The first nibble can be considered to handle data from 1 - 127
The second nibble can be considered to handle data from 128 - 255.

If a value from 0 - 127 should be considered, then the sixit will be 10xxxx (where xxxx is the nibble, and the first bit - 1 - means it is a sixit
the second bit 0 - means it is the first nibble of a byte and should be considered as a value from 0 - 127)

If a value from 128 - 255 should be considered then the sixit be 11aaaa (where aaaa is the nibble, and
the first bit - 1 - means it is a sixit
the second bit - 1 means it is the second nibble of a byte and hence the data should be considered as being between 128 - 255).

Using a sixit instead of a byte leads to using 6 bits for a value, instead of 8 bits.  This leads to a 25% reduction in memory usage.

-------------------------------
If you implement this, feel free to send back a percentage of the profits after operating costs to me - you can pay at http://www.leaanndrea.websitesforever.com/sixit_payments_16.html . 

No comments:

Post a Comment