Skip to content
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

GenerateKotlinFileAction.doGenerateKotlinDataClassFileAction freezes UI thread for 65seconds #427

Open
ViugiNick opened this issue May 30, 2024 · 1 comment

Comments

@ViugiNick
Copy link

wu.seal.jsontokotlin.GenerateKotlinFileAction.actionPerformed(GenerateKotlinFileAction.kt:61) [58300ms]
wu.seal.jsontokotlin.GenerateKotlinFileAction.doGenerateKotlinDataClassFileAction(GenerateKotlinFileAction.kt:93) [58300ms]
+ wu.seal.jsontokotlin.utils.KotlinClassFileGenerator.generateSingleKotlinClassFile(KotlinClassFileGenerator.kt:22) [46600ms]
  + [email protected]/java.lang.StringBuilder.toString(StringBuilder.java:453) [24100ms]
    [email protected]/java.lang.StringLatin1.newString(StringLatin1.java:769) [24100ms]
    [email protected]/java.util.Arrays.copyOfRange(Arrays.java:3822) [22900ms]
  + [email protected]/java.lang.StringBuilder.append(StringBuilder.java:179) [21900ms]
    [email protected]/java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:582) [21900ms]
    [email protected]/java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:228) [21900ms]
    [email protected]/java.util.Arrays.copyOf(Arrays.java:3537) [21900ms]
  + wu.seal.jsontokotlin.model.classscodestruct.DataClass.rename(DataClass.kt:36) [600ms]
    wu.seal.jsontokotlin.model.classscodestruct.DataClass.copy$default(DataClass.kt) [600ms]
    wu.seal.jsontokotlin.model.classscodestruct.DataClass.copy(DataClass.kt) [600ms]
+ wu.seal.jsontokotlin.utils.KotlinClassFileGenerator.generateSingleKotlinClassFile(KotlinClassFileGenerator.kt:20) [11700ms]
@wuseal
Copy link
Owner

wuseal commented May 30, 2024

thanks for your report, will look into this later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants