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)
Nov 21 2024, 12:15 PM
Unknown Object (File)
Nov 20 2024, 2:07 PM
Unknown Object (File)
Nov 19 2024, 2:37 AM
Unknown Object (File)
Nov 15 2024, 11:45 AM
Unknown Object (File)
Nov 12 2024, 1:59 AM
Unknown Object (File)
Nov 7 2024, 11:57 AM
Unknown Object (File)
Nov 4 2024, 7:07 AM
Unknown Object (File)
Nov 3 2024, 4:44 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