a-file-icon-idea
a-file-icon-idea copied to clipboard
IDE File explorer is very slow
Describe the bug
While the icons looks great, the IDE becomes very slow while using this plugin. The file explorer takes ages to "lock" on a file when the Select Opened File action is triggered. Also, when creating new folders/files, it takes a very long time before we see it refreshed in the file explorer.
To Reproduce
- Enable the plugin - The larger the project, the slower it gets
- Try to "scope" a file (CMD + F1) or to create a new file
Expected Behavior
File explorer updates should be snappy.
Environment
PhpStorm 2023.2.3
Build #PS-232.10072.32, built on October 13, 2023
Runtime version: 17.0.8.1+7-b1000.32 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.0
GC: G1 Young Generation, G1 Old Generation
Memory: 16000M
Cores: 10
Metal Rendering is ON
Registry:
editor.focus.mode.color.light=415967
ide.editor.tab.selection.animation=true
debugger.new.tool.window.layout=true
ide.animate.toolwindows=true
run.processes.with.pty=TRUE
ide.new.editor.tabs.vertical.borders=true
ide.experimental.ui=true
ide.balloon.shadow.size=0
editor.focus.mode.color.dark=415967
typescript.service.node.arguments=--max_old_space_size=12000
Non-Bundled Plugins:
org.intellij.plugins.hcl (232.8660.88)
com.github.copilot (1.3.2.3479)
org.jetbrains.plugins.go-template (232.9921.89)
com.github.camork.fileExpander (2.3)
com.intellij.kubernetes (232.10072.33)
ru.adelf.idea.dotenv (2023.2)
com.chrisrm.idea.MaterialThemeUI (8.12.6)
com.intellij.lang.jsgraphql (4.0.2)
zielu.gittoolbox (500.0.21+222)
mobi.hsz.idea.gitignore (4.5.2)
Plugin version is 93.1.0
Screenshots
Thanks for opening your first issue here! Be sure to follow the issue template!
Performance is not something I am great at. I tried using caching as much as I can but yeah, it's definitely slower than without the plugin. Check if you have the "Low Power Mode" option turned on.
@mallowigi I tried both with this setting on and off, but the slowness is just too much for me. I guess it's fine for small projects, but as it grows there are more and more directories, files, suggestions, etc. Sadly, it just becomes unusable.
I'm now using Extra Icons just to get "better" icons than the default, and it's okay. Its performance is very very good, but it doesn't do as much as Atom Material Icons
Well since there are many associations it need to check, maybe it takes some time ? I myself often work with projects with more than 10K files, it's not snappy yes but not to the extent of being unbearable...
Also, do you experience it for all projects, or for projects of a certain type only?
I experience it with all projects, however the larger the project, the worse the performance. When I say "unbearable", I mean seconds. It sometimes takes 5-15 seconds - that's unusable for any real-life work (IMO)
Sometimes when I reset the IDE it works decently, but after switching between projects or updating many files (git pull, for example), the performance degrades
Yeah no, I realized a performance degradation, but not to the point of using seconds... Are you using specific features? Custom Associations? What other plugins are you using?
I didn't tweak any config. Other plugins:
Non-Bundled Plugins:
org.intellij.plugins.hcl (232.8660.88)
com.github.copilot (1.3.2.3479)
org.jetbrains.plugins.go-template (232.9921.89)
com.github.camork.fileExpander (2.3)
com.intellij.kubernetes (232.10072.33)
ru.adelf.idea.dotenv (2023.2)
com.chrisrm.idea.MaterialThemeUI (8.12.6)
com.intellij.lang.jsgraphql (4.0.2)
zielu.gittoolbox (500.0.21+222)
mobi.hsz.idea.gitignore (4.5.2)
toda haver. I'm not sure I'll be able to find a solution but i'll try anyway.
No problem 🙂 Thanks for trying!
On Wed, 25 Oct 2023 at 18:23 Elior Boukhobza @.***> wrote:
toda haver. I'm not sure I'll be able to find a solution but i'll try anyway.
— Reply to this email directly, view it on GitHub https://github.com/mallowigi/a-file-icon-idea/issues/424#issuecomment-1779526981, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACA5YFVCNMFSJSDDPYNI7CLYBEVHLAVCNFSM6AAAAAA6O22K7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZZGUZDMOJYGE . You are receiving this because you authored the thread.Message ID: @.***>
This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I also have this issue, I don't even know why. It's even the same with the directory already open in the tree, so it's not about rendering the icons, it will just not select the file in the tree until you wait 10 seconds.
I'm on Apple M1 Max 64GB, there is something really wrong here. Will uninstall for now but will install again if you want me to test anything.
PHPStorm issue identifying this plugin is 2 years old: https://youtrack.jetbrains.com/issue/IDEA-291684/Sidebar-works-very-slow
I've also noticed an extreme performance impact. I even blamed PhpStorm for being slow but then somebody told me that this plugin is the cause of it and after disabling the the plugin, it's super fast to navigate to files.
See https://youtrack.jetbrains.com/issue/WI-74977/Improve-performance-of-Select-Opened-File
The same situation. Only today I figured out the problem, I thought it was an IDEA (ntfs <-> ext4 wsl) problem.
I discovered that in addition to this, the plugin greatly affects the CPU, about 20-30% of i7-10700KF
Same applies to my setup. I got here from IntelliJ support ticket, they checked my CPU profile and told me to disable this plugin.
As it was previously 6-15s to create a file, I feel blissful after disabling this plugin now.
#Maybe it is a specific icon? Do you have a project I can reproduce?
any huge project, for example https://github.com/organicmaps/organicmaps/ and then work on it for some hours like create a file, delete it again... and after a while it becomes really slow
Right, that's for sure a clue, that you need to have a project opened for a while. Maybe a memory leak?
Here are details on how to enable a profiler in IntelliJ: https://intellij-support.jetbrains.com/hc/en-us/articles/207241235
From CPU usage support was able to find the reason behind the slowdown, so it may be a valuable hint.
And here is a video on how slow it becomes: https://jbs.zendesk.com/attachments/token/zmMMdyIUtljcl8gsxc4dulwlc/?name=Screencast+from+2024-03-11+10-24-30.webm
https://youtrack.jetbrains.com/issue/IDEA-317983#focus=Comments-27-9501784.0-0
Thinking about it now, maybe it is the problem with the fact that upon expanding the directory the plugin has to check the content of other directories to properly assign a directory icon and that takes time. In our big PHP project, after I disabled the folder icons everything now works smoothly and without any noticable delay, so I would focus on this part.
Funny enough I'm experiencing this in the 2024.2 EAP, but not in the RC...
I've noticed extremely slow sidebar especially when using the Select Opened File button, took up to 3 seconds to react.
After I've disabled the plugin, it is now snappy again and moves instantly.
IntelliJ IDEA 2024.1 (Ultimate Edition)
Build #IU-241.14494.240, built on March 28, 2024
Runtime version: 17.0.10+8-b1207.12 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.4.1
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 12
Kotlin: 241.14494.240-IJ