snarf

Rust linter for cache-line false sharing in structs

Image 1 of 1: snarf terminal output with a struct layout and a warning

Finds Rust structs where atomic or contended fields share a cache line with other fields, and prints a layout diagram. It exits non-zero on a finding, so it fits in CI.

Trade-offs

  • It reports potential false sharing, not proven: it sees the layout, not runtime behavior, so the developer decides.
  • It needs nightly Rust, to get exact type sizes.

Q&A1

repr(packed) is not supported yet.

Reviews

Loading reviews

    More in Linters & formatters

    See all 19 →
    • MigrationPilotPostgreSQL migration linter that blocks unsafe DDL before merge
    • polyOne Rust binary that lints and formats about 30 languages
    • augurPolicy-based linter for OpenTelemetry Collector configurations
    • alintLinter for repository structure, files and config values
    • jev-specCLI that fails the build when code drifts from its Markdown spec
    • codehoundPython static analyzer for async and correctness bugs that pass review

    More in Performance

    See all 47 →
    • FeOxDBEmbedded key-value store in Rust with write-behind durability
    • blitcpFile copier that reads in disk order, dedupes and streams over raw SSH
    • EntrolyLocal context layer that picks what coding agents send to the model
    • BigMoeOnEdgeEngine that streams MoE experts from flash to run models larger than memory
    • AntirionAI gateway in one Rust binary, with the admin console built in
    • PXALLM server tuned for Tesla P100, V100 and GTX 10-series GPUs

    More in Rust

    See all 146 →
    • PaganelData migration engine that verifies the destination down to the row
    • AudioRouterVisual audio router for Windows 11: route, process and record on a canvas
    • ai-memoryPersistent memory for MCP clients in one Rust binary over SQLite
    • jc-rsjc rewritten as one static binary that turns command output into JSON
    • OVLTSelf-hosted OIDC server in one Rust binary, multi-tenant through Postgres RLS
    • HashCortxLocal-first desktop workspace for chat, coding agents and agent teams