[FIR] optimize direct allocation of empty ConeTypeProjection arrays
On the snapshot from KTIJ-26260 empty ConeTypeProjection arrays take about 10mb
This commit is contained in:
committed by
Space Team
parent
04d330edae
commit
bdfc68468f
+1
-1
@@ -43,7 +43,7 @@ class FirNumberSignAttributeExtension(session: FirSession) : FirTypeAttributeExt
|
||||
annotationTypeRef = buildResolvedTypeRef {
|
||||
type = ConeClassLikeTypeImpl(
|
||||
classId.toLookupTag(),
|
||||
emptyArray(),
|
||||
ConeTypeProjection.EMPTY_ARRAY,
|
||||
isNullable = false
|
||||
)
|
||||
}
|
||||
|
||||
+1
-1
@@ -78,7 +78,7 @@ object FirParcelizeClassChecker : FirClassChecker() {
|
||||
val superType = superTypeRef.coneType
|
||||
val parcelableType = ConeClassLikeTypeImpl(
|
||||
PARCELABLE_ID.toLookupTag(),
|
||||
emptyArray(),
|
||||
ConeTypeProjection.EMPTY_ARRAY,
|
||||
isNullable = false
|
||||
)
|
||||
if (superType.isSubtypeOf(parcelableType, context.session)) {
|
||||
|
||||
Reference in New Issue
Block a user