Skip to content

x11rb-protocol takes very long to build #883

@kchibisov

Description

@kchibisov

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions