Skip to content

Perf: investigate manual inlining in layout.rs #99117

Closed
@CAD97

Description

@CAD97

Due to how many different times the layout code is instantiated, seemingly inconsequential changes can have noticeable impact on compile perf.

It may be beneficial to investigate some manual inlining (open coding) of code in the layout code (e.g. replacing ? and other option/result combinators with match/return) to reduce the amount of IR LLVM has to deal with.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-allocatorsArea: Custom and system allocatorsI-slowIssue: Problems and improvements with respect to performance of generated code.T-libsRelevant to the library team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions