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)
Sun, Mar 29, 11:36 AM
Unknown Object (File)
Sat, Mar 28, 7:38 PM
Unknown Object (File)
Thu, Mar 26, 12:21 AM
Unknown Object (File)
Wed, Mar 25, 10:42 PM
Unknown Object (File)
Mon, Mar 9, 5:06 AM
Unknown Object (File)
Mar 5 2026, 8:52 AM
Unknown Object (File)
Feb 27 2026, 1:20 AM
Unknown Object (File)
Feb 26 2026, 3:40 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