▲ | simonask 3 days ago | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
That is an unbelievable claim. 1. Rust structs are generally smaller due to layout optimization. 2. A 10-50% difference is well within the “are you measuring debug builds?” territory. I’m curious what code you are writing that requires unsafe all the time? I do a lot of low-level optimization, and unsafe is barely ever actually needed. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | pclmulqdq 3 days ago | parent [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It sounds like you work with people who don't really know C. Understanding how to pack a struct is a pretty basic skill. Write an optimized database or network stack without unsafe for me. https://benchmarksgame-team.pages.debian.net/benchmarksgame/... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|