Java integer flag and bitwise operations for memory reduction
Is using an integer flag and bitwise operations an effective way of reducing the memory footprint of high volume Objects? Memory Footprint It is my understanding that commonly a boolean is stored as an int in a JVM implementation. Is this correct? In which case surely the 32 flags represent a large memory footprint reduction. Although of course the JVM implementations vary, so this may not always be the case. Performance It is my understanding that CPUs are very number driven and bitwise operations are about as efficient as things come in computing. Is there a performance penalty - or even