Color Identity in One Byte: Turning a Seq Scan into Bitwise AND
·7 mins
Why id:gruul was doing a full table scan and how encoding color identity as a 5-bit integer—twice, once in SQL and once in the Rust engine—fixed it with arithmetic that fits in a single CPU instruction.