pop-os / cosmic-epoch

Next generation Cosmic desktop environment
1.72k stars 55 forks source link

Any way to compile all submodules concurrently? #213

Closed road2react closed 3 months ago

road2react commented 4 months ago

Right now compiling takes a lot of unnecessary time, since shared dependencies have to be compiled repeatedly, and there is a bottleneck in compiling the final binary and linking for each submodule. Perhaps a cargo workspace would work? Then cargo can decide which order to compile everything with more information, so there should be less bottlenecks.

mmstick commented 4 months ago

You can install and configure sccache and mold for use with Rust/Cargo.

Drakulix commented 4 months ago

Perhaps a cargo workspace would work?

Can't because we have workspaces inside the projects and nested cargo workspaces are not a thing. As @mmstick already pointed out, sccache and mold are your friends.

ryzendew commented 4 months ago

To much ram gets used to compile everything now and I can’t afford anyone and compiling one by one is fine but set and forget is what i want … so maybe we can split things up or limit the amount of applets that compile? Say only 5 or something cause this makes testing impossible