use toList.contains for depset containsKey instead of toSet
This should be a slight performance improvement on the previous implementation, as NestedSet.toSet() calls toList() and then throws the contents into a set
RELNOTES: None.
@@ -334,6 +334,6 @@ public final class SkylarkNestedSet implements SkylarkValue, SkylarkQueryable {
@Override
public final boolean containsKey(Object key, Location loc) throws EvalException {
- return (set.toSet().contains(key));
+ return (set.toList().contains(key));
}
}
