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.
Details
Details
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
dougm created this revision.
This revision is now accepted and ready to land.Oct 25 2024, 5:41 PM2024-10-25 17:41:12 (UTC+0)
Closed by commit rG0d965bc03428: subr_pctrie: improve iter nbr search (authored by dougm). · Explain WhyOct 25 2024, 10:02 PM2024-10-25 22:02:32 (UTC+0)
This revision was automatically updated to reflect the committed changes.
Herald added subscribers: olce, imp. · View Herald TranscriptOct 25 2024, 10:02 PM2024-10-25 22:02:32 (UTC+0)