Closed coderedart closed 1 month ago
I think the only way to improve compile times here is optimizing the compiler. My main guess for the long compile times is the huge amount of extension traits used by gio/gtk4.
Outside compile times, using mold as linker improves linking times for gtk4-rs applications considerably.
I just created the basic gtk button example from the book and ran
cargo build --timings
on windows 11, ryzen 2600x (12 threads), 16 GB DDR4.95 seconds seems really long on a reasonably powerful machine. Especially considering that gtk is dynamically linked.
I was wondering if there's a way to reduce compile times.