Skip to content

cmd/compile: speed up TestAssembly #18966

@josharian

Description

@josharian

TestAssembly is very slow, leading to it being skipped by default. This is not surprising--it separately invokes the compiler and parses the result many times. However, with some care, it should be possible to take all the test functions (all named func f), rename them, assemble a single file to compile out of it, and parse the results, correlating them back to the original. This should speed it up considerably.

No special knowledge of the compiler required, but will require some careful attention and thought. Might be good first hacking project for a patient person with Go experience who wants to see the awful guts of the toolchain in action. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeSuggestedIssues that may be good for new contributors looking for work to do.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions