← Map
📜 SIDE QUEST · DEEP DIVE
· ◆◆◆ · ~10 min
Bit Tricks and Packed Orders
Deep Dive · Bit Tricks and Packed Orders
"When the record has to fit in a cache line, the fields go in the bits — and a handful of operations make that cheap."
masks and shiftspacking several fields into one wordpopcount and power-of-two trickswhen not to bother
A short lesson, then a quiz. ❤️×3 — a wrong answer costs a heart; finish with at least one left and the level is yours. Lose all three and you'll have to try again. Replay any time — XP and cleared levels are never lost.