Skip to content

docs(audits): survey macOS batched-metadata APIs vs current lstat pattern - #4067

Merged
oferchen merged 1 commit into
masterfrom
docs/macos-metadata-batching-audit-2153
May 14, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/macos-metadata-batching-audit-2153

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Survey macOS-specific metadata APIs (getattrlist, getattrlistbulk, attrlist, getattrlistat, NSURL bulk fetch) against the current per-entry lstat/fstatat pattern in the file-list walker and generator.
  • Document the cold-cache win getattrlistbulk offers on APFS (one syscall per buffer of 50-200 entries vs N syscalls) and the limitations (symlink-follow gap, opaque record layout, FS variance).
  • Recommend deferring implementation until Improve rpm packaging error reporting #1864 (memory bench) and Guard --server entrypoint against literal operands #2210 (arena allocator) land on the shared walker hot path. Provide a roadmap sketch (crates/flist/src/batched_stat/getattrlistbulk.rs) for the revisit. Refs Add incremental recursion CLI toggles #2153.

Test plan

  • Doc-only change; no code modified.
  • Cross-references verified against existing audits (100k-stat-syscall-overhead.md, parallel-stat-batch-size.md, macos-fastio-fallback.md).
  • All call sites cited from current master source tree.

…tern

Survey getattrlistbulk(2) and related Darwin metadata APIs against the
current per-entry lstat/fstatat pattern. Recommend deferring implementation
until memory bench (#1864) and arena allocator (#2210) on the shared
walker hot path land. Refs #2153.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 14, 2026
@oferchen
oferchen merged commit 32693d4 into master May 14, 2026
8 checks passed
@oferchen
oferchen deleted the docs/macos-metadata-batching-audit-2153 branch May 14, 2026 16:03
oferchen added a commit that referenced this pull request May 18, 2026
…tern (#4067)

Survey getattrlistbulk(2) and related Darwin metadata APIs against the
current per-entry lstat/fstatat pattern. Recommend deferring implementation
until memory bench (#1864) and arena allocator (#2210) on the shared
walker hot path land. Refs #2153.
oferchen added a commit that referenced this pull request May 18, 2026
…tern (#4067)

Survey getattrlistbulk(2) and related Darwin metadata APIs against the
current per-entry lstat/fstatat pattern. Recommend deferring implementation
until memory bench (#1864) and arena allocator (#2210) on the shared
walker hot path land. Refs #2153.
oferchen added a commit that referenced this pull request Aug 24, 2026
…tern (#4067)

Survey getattrlistbulk(2) and related Darwin metadata APIs against the
current per-entry lstat/fstatat pattern. Recommend deferring implementation
until memory bench (#1864) and arena allocator (#2210) on the shared
walker hot path land. Refs #2153.
oferchen added a commit that referenced this pull request Aug 24, 2026
…tern (#4067)

Survey getattrlistbulk(2) and related Darwin metadata APIs against the
current per-entry lstat/fstatat pattern. Recommend deferring implementation
until memory bench (#1864) and arena allocator (#2210) on the shared
walker hot path land. Refs #2153.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant