Page MenuHomeFreeBSD

subr_pctrie: improve iter nbr search
ClosedPublic

Authored by dougm on Oct 20 2024, 4:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 28, 12:25 PM
Unknown Object (File)
Fri, May 16, 1:46 AM
Unknown Object (File)
Thu, May 15, 2:53 PM
Unknown Object (File)
Apr 21 2025, 9:31 AM
Unknown Object (File)
Apr 9 2025, 5:00 AM
Unknown Object (File)
Apr 6 2025, 6:23 PM
Unknown Object (File)
Mar 22 2025, 2:40 AM
Unknown Object (File)
Feb 22 2025, 7:05 AM
Subscribers

Details

Summary

pctrie_toval(node) can be applied to either a leaf or an internal node; in the latter case it provides the address of the pn_owner field. In a couple of places where a neighbor search is about to begin for an iterator, the current code distinguishes the leaf and non-leaf cases in a way that isn't really necessary. This change shrinks each function by 16 bytes, and by a branch instruction.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable