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:
+5
-6
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user