
30 Aug
2014
30 Aug
'14
7:09 p.m.
On Sat, Aug 30, 2014 at 11:07:02AM -0700, Jon A. Cruz wrote:
Those also are a optimization for space. There is an expectation that the compiler will pack together all those specified to use a single bit into one int.
Of course that then gives a penalty for performance.
These days space optimisation is performance optimisation - if everything is in the cache things go much faster. Setting and clearing bits takes no more time than setting and clearing words in practice.
(I agree with everything else you said)
njh