HomeFreeBSD

Optimize res_find().

Description

Optimize res_find().

When the device name is provided, we can simply run strncmp() for each
line to quickly skip unrelated ones, that is much faster than sscanf()
and only then strcmp().

MFC after: 2 weeks

Details

Provenance
mavAuthored on Aug 9 2021, 1:34 AM
Parents
rGd8789cd0ae27: mmc_fdt_helper: correct typo in DT property name
Branches
Unknown
Tags
Unknown