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)
Thu, Oct 8, 10:37 PM
Unknown Object (File)
Sun, Sep 27, 6:30 PM
Unknown Object (File)
Sat, Sep 26, 5:44 PM
Unknown Object (File)
Fri, Sep 25, 6:43 AM
Unknown Object (File)
Thu, Sep 17, 2:34 AM
Unknown Object (File)
Sep 4 2026, 4:46 PM
Unknown Object (File)
Sep 4 2026, 8:13 AM
Unknown Object (File)
Sep 3 2026, 11:02 PM
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