New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not call Enum.values() on each call to decodeEnumValue for explicitly-serializable enums #1372
Labels
Comments
shanshin
added a commit
to JetBrains/kotlin
that referenced
this issue
Oct 12, 2021
shanshin
added a commit
to JetBrains/kotlin
that referenced
this issue
Jan 31, 2022
shanshin
added a commit
to JetBrains/kotlin
that referenced
this issue
Feb 21, 2022
shanshin
added a commit
to JetBrains/kotlin
that referenced
this issue
May 25, 2022
shanshin
added a commit
to JetBrains/kotlin
that referenced
this issue
May 26, 2022
shanshin
added a commit
to JetBrains/kotlin
that referenced
this issue
May 26, 2022
shanshin
added a commit
to JetBrains/kotlin
that referenced
this issue
Jun 14, 2022
Alefas
pushed a commit
to JetBrains/kotlin
that referenced
this issue
Jun 14, 2022
Fixed via #1851 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce:
Its
serializer.deserialize
code contains the following sequence:AnnotatedEnum.values()[decoder.decodeEnum($$serialDesc)];
It triggers an allocation of values array on each call.The desired behaviour is to pre-cache this array in serializer's state
The text was updated successfully, but these errors were encountered: