Listen 6:00 Save 1 save A developer describes optimizing a 12KB ping-monitoring ring buffer down to 4KB using bitfields and tagged unions purely for enjoyment, despite the application not being memory-constrained.
20 commentsCommenters generally approve of the optimization as intellectually satisfying but caution that Knuth's warning targets premature architectural complexity and that bitfield tricks can harm readability and portability.
More on OpenBSD5 #developer-tools5021 #software-engineering2301 #culture1369 #programming-languages251 #performance217 #linux127 Related Divan Visagie Using FreeBSD as a primary OS for a summer revealed BSD’s diverse family, ZFS’s replaceable‑drive OS installs, focused‑OS benefits, and OpenBSD’s pledge security model.
also on OpenBSD , #linux , #developer-tools Inbox zero for reading. Save it, read it, clear it.
Sign up free