Psi2ir: do not sort descriptors for fake override generation

Descriptors are already supposed to be sorted in scopes. The problem is
that rendering descriptors for sorting takes a lot of time (~1.5% of
total compilation time of intellij with JVM IR), and simple heuristics,
like comparing by names first, don't fully help with it.

 #KT-48233
This commit is contained in:
Alexander Udalov
2021-08-26 00:11:00 +02:00
parent cc52832943
commit ffe0d9de70
59 changed files with 2205 additions and 2242 deletions
@@ -6,6 +6,11 @@ class Impl : A, B {
}
private /* final field */ val $$delegate_0: B = b
override val size: Int
override get(): Int {
return <this>.#$$delegate_0.<get-size>()
}
override fun add(element: @FlexibleNullability String?): Boolean {
return <this>.#$$delegate_0.add(element = element)
}
@@ -46,14 +51,8 @@ class Impl : A, B {
return <this>.#$$delegate_0.retainAll(elements = elements)
}
override val size: Int
override get(): Int {
return <this>.#$$delegate_0.<get-size>()
}
}
fun box(): String {
return "OK"
}