3 ms·
Fun article! Summary: Rewriting a simple solution using a map of bytes, to using a slice of 256 booleans, then to a slice of 32 bytes (256 bits), resulted in 18
by lioeters 4y ago
Fun article! Summary: Rewriting a simple solution using a map of bytes, to using a slice of 256 booleans, then to a slice of 32 bytes (256 bits), resulted in 18x faster code and 40% less memory allocation.