cloud-opensource-java icon indicating copy to clipboard operation
cloud-opensource-java copied to clipboard

ci: Fixed inefficiency in the findRootCause method

Open shawabhijit opened this issue 9 months ago • 3 comments

The fix improves efficiency by:

Adding a null/empty check to handle edge cases gracefully Still using the first path to create the initial set of coordinates Using Guava's Sets.intersection() method instead of repeated retainAll() calls This creates new intersection sets rather than modifying the original set in-place The result is a more efficient implementation that scales better with larger numbers of dependency paths and larger sets

shawabhijit avatar Mar 21 '25 11:03 shawabhijit