문제

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?

올바른 솔루션이 없습니다

다른 팁

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)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top