Replies: 4 comments 9 replies
-
There were recently some changes in the master branch that should improve the rust compilation time. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your response :) Are these changes already accessible? How can I test them? Have a nice day. |
Beta Was this translation helpful? Give feedback.
-
After one hour: "signal: 9, SIGKILL: kill" |
Beta Was this translation helpful? Give feedback.
-
Not sure if I can help you, I'm using linux and rustc 1.81.0-nightly (59e2c01c2 2024-06-17)
Why not the problem with external libraries? Would you share the contents of
Where are those messages so that we can understand your problems in more details?
Would you share more details about your machine? probably you're using docker for development and you're creating an image from scratch every time you're compiling your code!
You'd shoot your foot with a gun if you put everything in a single file. I don't recommend using the slint! macro, and instead write several slint and rust files. Sometimes you may need to split your project into multiple crates to improve compilation time.
You need to provide more details as mentioned above |
Beta Was this translation helpful? Give feedback.
-
rustc 1.81.0-nightly (aa1d4f682 2024-07-03) (same issue with previous versions)
host: aarch64-apple-darwin
LLVM version: 18.1.7
Slint: 1.6
Hello,
For several weeks now, the compilation time has increased from a little over a minute to 12-15 minutes, even though a large part of the application was already built when the compilation time increased to 15 minutes.
The problem comes from the Slint part, as the crate only contains that, with the rest coming from external libraries.
I have read several messages dealing with this issue and have tried multiple solutions on different versions of Slint and Rust, without success. The compilation is still cumbersome.
I assume that I have made changes on the Slint side that Rust is having difficulty managing since it worked very well until recently (I can't remember exactly when it started taking longer).
Could you advise me on how to find the cause of this (real) problem?
My application is complex, is it better to manage all the logic via a single file? In my case, I have multiple files containing many callbacks (75) and global elements for the data.
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions