During profiling both debug and release builds of both alacritty and winit, I've noticed that
x11rb-protocol builds around 5x longer than most massive deps like (serde).
And if you happen to have 2 copies of x11rb-protocol in your tree, it'll really slow things down.
For example alacritty on my system builds in around 20seconds, and each of the x11rb-protocol takes around 12s (I have 32 threads, so it doesn't really matter, but on slow systems it could really decrease perf).
I was testing with the cargo build --timings and cargo build --release --timings on the tip of the alacritty/alacritty repo. You could do that on the winit repo alone for example.
It was used on both rustc 1.72.0 and rustc 1.74.0-nightly (0288f2e19 2023-09-25) showing the exact same compilation times.
During profiling both
debugandreleasebuilds of both alacritty and winit, I've noticed thatx11rb-protocolbuilds around 5x longer than most massive deps like (serde).And if you happen to have 2 copies of
x11rb-protocolin your tree, it'll really slow things down.For example alacritty on my system builds in around 20seconds, and each of the
x11rb-protocoltakes around 12s (I have 32 threads, so it doesn't really matter, but on slow systems it could really decrease perf).I was testing with the
cargo build --timingsandcargo build --release --timingson thetipof thealacritty/alacrittyrepo. You could do that on the winit repo alone for example.It was used on both
rustc 1.72.0andrustc 1.74.0-nightly (0288f2e19 2023-09-25)showing the exact same compilation times.