logoalt Hacker News

userbinatortoday at 7:35 AM1 replyview on HN

and often performance as well

BS. Nothing can be faster than a read()/write() (or even mmap()) into a struct, because everything else would need to do more work.


Replies

pjc50today at 9:23 AM

Sure, if your structure doesn't contain any pointers and you only ever want to support one endianness and you trust your compiler to fix the machine layout of the struct forever.

show 1 reply