Replace several bool
values in ProbabilityState
with a single uint8_t status
to save space.
#44
Labels
bool
values in ProbabilityState
with a single uint8_t status
to save space.
#44
Currently there are a bunch of boolean values in the
ProbabilityState
class which could be condensed into something smaller:We could use a single
uint8_t status
to hold all of these values, with bit 0 beingassignedInRemapping
, bit 1 beingisNew
, etc... and use bitwise math to get the values like so:If anyone wants to help out on this, I think this would be a good first issue for a newcomer.
The text was updated successfully, but these errors were encountered: