sonic-net / sonic-sairedis

SAI object interface to Redis database, as used in the SONiC project
Other
56 stars 259 forks source link

optimize for best candidate find #1398

Closed inspurSDN closed 1 month ago

inspurSDN commented 1 month ago

why I did: in best candidate, it looking for all items of this type to search for the most seamful item, when their is too many vlan member, we can wait very long.

what I did: since VLAN and VLAN MEMBER is unique, so if we find one with all attr matched, we break and do not compare others.