I've encountered a performance issue where the runIdetask consistently takes 20-40 seconds to start on Windows 11.
After investigation, I found that the task appears to always execute the full IDE creation path in IdesManagerService.resolve():
fun resolve(platformPath: Path) = ides.computeIfAbsent(platformPath.safePathString) {
log.info("Creating new IDE instance from: $platformPath")
createIde {
missingLayoutFileMode = SKIP_SILENTLY
path = platformPath
}
}
Further tracing suggests this calls into the With a further tracing, seems calling into https://github.com/JetBrains/intellij-plugin-verifier/blob/0544ae86d462311896aca9a50d6bd4106d0a8634/intellij-plugin-structure/structure-ide/src/main/java/com/jetbrains/plugin/structure/ide/DispatchingIdeManager.kt#L22C1-L30C4. However, the current logging (or possibly my log level configuration) doesn't provide sufficient details to pinpoint the exact bottleneck.
Partial logs for reference:
runIde-partial.log
Questions:
- IDE Instance Reuse: Is it possible to cache and reuse the created IDE instance when only plugin code changes, rather than recreating it each time?
- Windows Optimization: Are there any known optimizations or configuration changes that could accelerate this process specifically on Windows?
Environment:
- OS: Windows 11
- Task: runIde
- Observed delay: 20-40 seconds per run
- intellij-platform-gradle-plugin: 2.5.0
I'd appreciate any guidance on improving the startup performance. Thank you for your time and consideration!
I've encountered a performance issue where the runIdetask consistently takes 20-40 seconds to start on Windows 11.
After investigation, I found that the task appears to always execute the full IDE creation path in IdesManagerService.resolve():
Further tracing suggests this calls into the With a further tracing, seems calling into https://github.com/JetBrains/intellij-plugin-verifier/blob/0544ae86d462311896aca9a50d6bd4106d0a8634/intellij-plugin-structure/structure-ide/src/main/java/com/jetbrains/plugin/structure/ide/DispatchingIdeManager.kt#L22C1-L30C4. However, the current logging (or possibly my log level configuration) doesn't provide sufficient details to pinpoint the exact bottleneck.
Partial logs for reference:
runIde-partial.log
Questions:
Environment:
I'd appreciate any guidance on improving the startup performance. Thank you for your time and consideration!