Re:How to save multiple numbers into one byte
by striking on Friday December 02, 2016 @09:10PM
(#13093855)
I'm not questioning the usefulness of bitfields. But in this case, it would be silly not to use a database instead.
The method that the article describes (storing two-dimensional arrays of "empty", "black", and "white" in 2 bits) is also not the best one to use to store Go games. Chopping up games and creating deltas from them, or storing the moves rather than the sheets themselves and recreating those sheets on the fly, are best for data compression.
The method that the article describes (storing two-dimensional arrays of "empty", "black", and "white" in 2 bits) is also not the best one to use to store Go games. Chopping up games and creating deltas from them, or storing the moves rather than the sheets themselves and recreating those sheets on the fly, are best for data compression.
Bitfields are great, but not for this.