Skip to content

Commit

Permalink
Revert "🐺💻"
Browse files Browse the repository at this point in the history
This reverts commit 5d8efb8.
  • Loading branch information
RawDiamondMC committed Oct 4, 2024
1 parent 27859df commit 8f97c73
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
package band.kessoku.lib.config.api.values;

import com.google.common.collect.ImmutableList;
import com.google.common.collect.Sets;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Unmodifiable;
Expand Down Expand Up @@ -114,11 +113,7 @@ public boolean remove(Object o) {

@Override
public boolean containsAll(@NotNull Collection<?> c) {
/* Amarok Note:
* ArrayList 的数据存储量不可知的情况下,悲观假设有大量数据,那么 ArrayList#containsAll 的效率会低的令人发指...
* 虽说如果数据量少的话套一层 Set 也是无端浪费性能... 但我依然建议悲观演算。
* */
return Sets.newHashSet(this.value).containsAll(c);
return this.value.containsAll(c);
}

@Override
Expand Down

0 comments on commit 8f97c73

Please sign in to comment.