pokey micro-optimizations for from_binary