Decrease build time #15

Closed
bpeetz wants to merge 0 commits from build_perf into master
Owner

This adds mold as linker (mold is by far faster than the ld).
The big compile speed improvement for debug build would however originate in the usage of cranelift as codegen backend. The version packaged though the nix flake fails however to build the project.

This adds [mold](https://github.com/rui314/mold) as linker (`mold` is by far faster than the `ld`). The big compile speed improvement for debug build would however originate in the usage of cranelift as codegen backend. The version packaged though the nix flake fails however to build the project.
bpeetz added 5 commits 2023-07-26 19:34:38 +00:00
e62febf0f4
Build(Cargo): Add mold as default linker in both profiles
I measured the linking times by running `cargo rustc --bin trinitrix --
-Z time-passes`, which resulted in following data:

`ld`:
37.794s to link
`mold`:
21.389s to link

The downside for now is, that this requires to have mold installed to
build trinitrix (The nix flake based direnv already has it) and that
mold only works on linux.
a79479c1fa
Build(flake): Add rustc cranelift codegen to development shell
This is executed by running `cargo clif` instead of `cargo`.
It _should_ result in decreased compile times (around 30%).
bpeetz force-pushed build_perf from a84661c1f1 to 2d690a9d33 2023-07-26 19:43:44 +00:00 Compare
bpeetz force-pushed build_perf from 2d690a9d33 to 8b5f76a26a 2023-07-26 19:44:53 +00:00 Compare
bpeetz force-pushed build_perf from 8b5f76a26a to 3d417d7e15 2023-07-26 19:53:59 +00:00 Compare
Author
Owner

Merge manually.

Merge manually.
bpeetz closed this pull request 2023-07-26 20:48:48 +00:00
This repo is archived. You cannot comment on pull requests.
No description provided.