Use them masked in integers. SQLite internally uses varint
to save space, such that smaller values will use less bytes (from The SQLite Database File Format)
题
I saw across this site questions similar to this one and the answers were usually not to use bit masks
. One of the strongest reasons not to do that was that it even won't save memory
because the SQL server
wrapped bit
columns to a single byte
.
However, to my understanding, there are no bit columns in SQLite
so there will be some memory waste.
What do you think? To use or not to use?
没有正确的解决方案
其他提示
不隶属于 StackOverflow