How binary pattern matching, append-friendly accumulators and SWAR cut our nameserver's CPU per query by 12%, with lessons for any BEAM app.