Optimize PropertyMetadataImpl instance creation
Create all property metadatas in <clinit> and save them to a static array $propertyMetadata. Getter/setter of each delegated property will then just obtain the corresponding instance from that array #KT-4232 Fixed
This commit is contained in:
@@ -38,6 +38,7 @@ public final class JvmAbi {
|
||||
public static final String CLASS_OBJECT_SUFFIX = "$" + CLASS_OBJECT_CLASS_NAME;
|
||||
|
||||
public static final String DELEGATED_PROPERTY_NAME_SUFFIX = "$delegate";
|
||||
public static final String PROPERTY_METADATA_ARRAY_NAME = "$propertyMetadata";
|
||||
public static final String ANNOTATED_PROPERTY_METHOD_NAME_SUFFIX = "$annotations";
|
||||
|
||||
public static final String INSTANCE_FIELD = "instance$";
|
||||
|
||||
Reference in New Issue
Block a user