B
Ben_
Hello,
The following assertion hits my mind: "a byte is used instead of a bit for
two reasons: a write to a byte is quicker than a bit change a write to a
byte is quicker than a bit change, and the other bits are reserved for
future use." (IBM JVM Diagnostics Guide 1.3.1, Chapter 2. Understanding the
Garbage Collector, p.13,
http://www-106.ibm.com/developerworks/java/jdk/diagnosis/diag131rev1.pdf).
What strickes me is not that they reserve bits for future use
, but
rather that a write to a byte is said to be quicker than to a bit.
Can someone tell me why it is so ?
Thanks.
The following assertion hits my mind: "a byte is used instead of a bit for
two reasons: a write to a byte is quicker than a bit change a write to a
byte is quicker than a bit change, and the other bits are reserved for
future use." (IBM JVM Diagnostics Guide 1.3.1, Chapter 2. Understanding the
Garbage Collector, p.13,
http://www-106.ibm.com/developerworks/java/jdk/diagnosis/diag131rev1.pdf).
What strickes me is not that they reserve bits for future use
rather that a write to a byte is said to be quicker than to a bit.
Can someone tell me why it is so ?
Thanks.