From 0a5a74ef89bdafa3cefbbdd4ec7eb55151771363 Mon Sep 17 00:00:00 2001 From: Elena Lepilkina Date: Mon, 24 Aug 2020 08:06:37 +0300 Subject: [PATCH] Removed outdated comment --- .../ring/src/main/kotlin/org/jetbrains/ring/EulerBenchmark.kt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/performance/ring/src/main/kotlin/org/jetbrains/ring/EulerBenchmark.kt b/performance/ring/src/main/kotlin/org/jetbrains/ring/EulerBenchmark.kt index b25c2d0600b..70b43d6dfc8 100644 --- a/performance/ring/src/main/kotlin/org/jetbrains/ring/EulerBenchmark.kt +++ b/performance/ring/src/main/kotlin/org/jetbrains/ring/EulerBenchmark.kt @@ -70,10 +70,6 @@ open class EulerBenchmark { for (j in minDiv..maxDiv) { if (i % j == 0L) { val res = i / j - // Without toLong() here we have a real nightmare... - // in is resolved to Iterable.contains(Long) - // which has O(N) complexity and always gives false - // See KT-6978, KT-6950, KT-6361 if (res in minDiv.toLong()..maxDiv.toLong()) { return i }