The real question is: do you have a profile telling you this code is a performance bottleneck?
Just go with the type that fits the logic best (bool or possibly enum in this case). Worry about performance later.
Printable View
The real question is: do you have a profile telling you this code is a performance bottleneck?
Just go with the type that fits the logic best (bool or possibly enum in this case). Worry about performance later.
It would be the question if it called for empirical data.