Skip to content

x/text/unicode/runenames: compiling tables.go is slow due to long string concatenation #18078

Closed
@bradfitz

Description

@bradfitz

The subrepos need to be building before we do a release.

The x/text/unicode/runenames is currently failing on the trybots due to lack of memory, even after I doubled their container memory limits from 2GB to 4GB.

Compiling x/text/unicode/runenames is taking over 4GB of ram.

Actually, my development VM (also 4GB, no swap) also fails to compile this. I do not want to make my VM larger.

Can we make the auto-generated tables nicer to the compiler, or can the compiler be smarter about not going pathological on this input and not optimize something it's trying to optimize?

/cc @nigeltao @randall77

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.ToolSpeed

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions