Get the latest tech news

Cache-Conscious Data Layout in Rust: Field Zoning, False Sharing, 128-Byte Rule


How to lay out a shared Rust struct by who-touches-what - zoning fields by write owner and frequency, then padding the cross-core ones to avoid false sharing and prefetcher-induced contention.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Rust

Rust

Photo of field zoning

field zoning

Photo of byte rule

byte rule

Related news:

News photo

Postgres rewritten in Rust, now passing 100% of the Postgres regression tests

News photo

Rewriting Bun in Rust

News photo

Kani: A Model Checker for Rust