-
Notifications
You must be signed in to change notification settings - Fork 43
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
Read classes takes up to minutes each time #2516
Comments
@Vassiliy-Kudryashov please investigate. May be we have changed something in Soot loading recently, so scanning dependencies is now longer that before. Also I suggest to rename |
@Vassiliy-Kudryashov Could you please check. With the latest updates on main it takes minutes sometimes. |
Either "Generate tests: read classes" or "Initialization" now takes 25 seconds, up to minutes each time. Here is the comparison of test generation on the same project, same class (also checked in another project): @Markoutte Could you please check the reason and whether the generation pre-phase can be speed up? |
Well, confusing message was replaced with "Generate tests: starting engine", real investigation of time consumption should be provided later. |
I profiled this part and generally the Soot initialization consumes all the time. Even for a small project it loads nearly 10K classes. You can see the results of profiling below. I found 2 major problems:
|
Description
Even for a simple project with 5 classes, read classes phase take up to 10 seconds each time.
To Reproduce
UTBotJava
projectArrayQuickSort
Generate tests: read classes
is displayed in progress barExpected behavior
It is expected that 5-10 simplest classes will be read in 0.5-1 seconds.
Actual behavior
Generate tests: read classes
is displayed for 6 seconds each time.Screenshots, logs
Environment
IntelliJ IDEA version - Ultimate 2023.2
Project - Gradle
JDK - 17
OS - Windows 10 Pro
CPU - 13% usage
Memory - 70%
Additional context
In
TwoAnimals
Spring-based project - for 1 class - it takes 10 seconds each time.The text was updated successfully, but these errors were encountered: