I'm having a perf issue in IntelliJ/AS with larger...
# announcements
c
I'm having a perf issue in IntelliJ/AS with larger projects with kotlin. If I have
Copy code
val asdf = "asdf"
        when (asdf) {
            "abc" -> {
            }
            else -> {
            }
        }
and then comment out the first line, it takes about 15 seconds for the
when
statement to show as invalid (the asdf var is underlined in red). How would I get a trace in order to file a bug for this? How can I help JB with this issue?
a
t
there is https://youtrack.jetbrains.com/issue/KT-32378 not sure your problem is the same
a
In general, please avoid adding more snapshots etc. to already existing issues. It's really hard to tell if it's a duplicate or not, so it's better to always create a new issue.
👍 1
By the way, if you're using Kotlin plugin 1.3.70, try to disable the new inference in IDE (https://youtrack.jetbrains.com/issue/KT-32378#focus=streamItem-27-3551507.0-0), it may help.
c
Already had the new inference turned off.
@Alexey Belkov [JB] are you saying I should follow the section that says "Profiling Slow Indexing". I didn't know that my problem was "slow indexing", but that's the only section that mentions cpu snapshots.
a
No, I mean the following section:
The CPU usage is high or IDE is slow
If you can continue working with the IDE, but it feels slower than expected or CPU usage is high read below
c
@Alexey Belkov [JB] thanks. I could have sworn that it said "The CPU usage is high" and nothing else. 😄
👍 1