-
Notifications
You must be signed in to change notification settings - Fork 598
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
Compile Slow #4082
Comments
Here is the code : https://github.com/Adancurusul/slint_bug |
Slint does generate a lot of code, especially when embedding resources, which can take long to process. For me it is 19s in the build script and 45s in the build itself. |
rustc self-profile from the above project (anything above 1% of time, there is a log tail of functions below this still):
|
That's weird, what CPU are you using. |
I have a "AMD Ryzen 9 3900X 12-Core Processor" according to |
With my app, adding space at the end of slint file takes 33seconds(7 build script, 26 second rest) - i7 4770 - 4/8 HT Also I use cranelift - https://github.com/rust-lang/rustc_codegen_cranelift which decrease time to compile entire project from 7 minutes to 2m 30s
become
|
I'm not sure why I didn't notice this before(I don't think it occurred before), but building an application in release mode takes now over 87 minutes, of which it takes about 83 minutes to compile my application. Cargo timings |
rust-lang/rust#121354 (comment)
|
Slint 1.7 contains some optimization that reduce a bit the size of the generated code and that helps a bit with the compilation time. |
I'm also encountering slow builds with slint although I'm now on 1.7. The part that's slow seems to be different for me though. Presumably slint is generating so many generic types that it's causing the slowdown?
|
Whether in linux or windows.
rust is very slow at the end of the compilation
Even if I don't modify any files he still takes more than 2 minutes
The following two graphs show the output of the compilation in linux without changing the code.
Here are two screenshots of the output using --timings
This slows down my development.
Is this due to a problem with my code?I can provide my source code if needed.
The text was updated successfully, but these errors were encountered: