HomeFreeBSD

radix_trie: avoid code duplication in insert

Description

radix_trie: avoid code duplication in insert

Two cases in the insert routine are written differently, when
they're really doing the same thing. Writing that case only once
saves 208 bytes in the compiled vm_radix_insert code and reduces
instructions executed by about 2%.
Reviewed by: alc
Tested by: pho
Differential Revision: https://reviews.freebsd.org/D40807

Details

Provenance
dougmAuthored on Jul 9 2023, 8:06 PM
Reviewer
alc
Differential Revision
D40807: radix_trie: avoid code duplication in insert
Parents
rG89240e0ab60a: hwpmc(4): update DEBUGGING section details
Branches
Unknown
Tags
Unknown