HomeFreeBSD

Eliminate the overhead of gratuitous repeated reinitialization of cap_rights

Description

Eliminate the overhead of gratuitous repeated reinitialization of cap_rights

  • Add macros to allow preinitialization of cap_rights_t.
  • Convert most commonly used code paths to use preinitialized cap_rights_t. A 3.6% speedup in fstat was measured with this change.

Reported by: mjg
Reviewed by: oshogbo
Approved by: sbruno
MFC after: 1 month

Details

Provenance
mmacyAuthored on
Reviewer
oshogbo
Parents
rS333424: nda protocol rate reporting
Branches
Unknown
Tags
Unknown