avocado-framework / avocado

Avocado is a set of tools and libraries to help with automated testing. One can call it a test framework with benefits. Native tests are written in Python and they follow the unittest pattern, but any executable can serve as a test.
https://avocado-framework.github.io/
Other
336 stars 335 forks source link

Multipath: Optimization method for obtaining multipath states #5893

Closed ut003460 closed 1 month ago

ut003460 commented 3 months ago
  1. Early return: When a matching path is found, the result can be returned immediately without continuing to traverse other paths. This can improve efficiency.
  2. Use a dictionary to store path information: Path information can be stored in the dictionary with the path as the key, which can quickly find the corresponding path's status information.
  3. Exception handling: Add appropriate exception handling to deal with situations where a matching path is not found
Naresh-ibm commented 3 months ago

@ut003460 I feel the same like @richtja. your actually removing the early return. and not require to store anything here. please re-check and elaborate your claim.