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
Optimize res_find(). Tags None Referenced Files None Subscribers None
Description
Details
|