Skip to content

Adding _int.to_str triples time to compile standard library #124

Closed
@jyasskin

Description

@jyasskin

Before jyasskin/rust@684502b:
$ time ./rustboot -L . -shared -o libstd.dylib lib/std.rc
real 0m1.205s; 0m1.168s; 0m1.159s

After:
$ time ./rustboot -L . -shared -o libstd.dylib lib/std.rc
real 0m3.375s; 0m3.571s; 0m3.421s

This is with CFG_NATIVE=1. There must be something pathological in the compiler. A 40-line function shouldn't be able to triple the build time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions