Skip to content

Investigate the impact of using Gold for linking rather than the default linker on systems where it is available #29938

@bstrie

Description

@bstrie

Inspired by @alexcrichton 's comment here: https://www.reddit.com/r/rust/comments/3tco32/shattering_a_crate_in_pursuit_of_compile_times/cx58vrt

First we need to gather data on how much Gold benefits compiler performance. Collect some large Rust projects and use time-passes to determine the relative impact of using different linkers. Initial results should be promising: https://www.reddit.com/r/rust/comments/3tco32/shattering_a_crate_in_pursuit_of_compile_times/cx5yrmq

If we decide that the performance win is worth it then we need to decide how best to implement this scheme. Does anyone foresee any problems with selectively preferring a linker that's not the default on a system? It has echoes of the headaches we've had with preferring jemalloc over the system allocator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binariesI-compiletimeIssue: Problems and improvements with respect to compile times.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions