Skip to content

Experiment with reusing monomorphized instances across crates #1980

Closed
@marijnh

Description

@marijnh

Currently, crates generate their own versions of all generic functions they use. They could write info about the generated functions to the metadata, and crates compiling against them could check that first, and simply link the already existing instance when possible. This is bound to reduce code output size, and thus compilation time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationI-slowIssue: Problems and improvements with respect to performance of generated code.P-lowLow priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions