Boosted by rust@mas.to ("Rust tips"):
mattmcal@fosstodon.org wrote:
PSA to Rust programmers: padding bytes don't trigger niche optimization. Add a `bool` at the end off your struct to get it for free.
Boosted by rust@mas.to ("Rust tips"):
mattmcal@fosstodon.org wrote:
PSA to Rust programmers: padding bytes don't trigger niche optimization. Add a `bool` at the end off your struct to get it for free.