Skip to content

Compiling "Hello World" can take a prohibitive amount of time #3216

Closed
@bstrie

Description

@bstrie

I've noticed recently that the compilation times of even trivial programs has become relatively large. This is most noticeable in the context of my sort-of-REPL, which now exhibits noticeable pauses between entering commands due to constant recompiles. On my beefy desktop, compiling the standard HW:

fn main() {
    io::println("hello, world!");
}

takes around 0.4 seconds. I've spoken with @pcwalton briefly about this and he's acknowledged the issue and mentioned that he has ideas to mitigate it.

Here's a more severe case: a fellow on IRC (MattCoder) has noted that on a Windows XP virtual machine, Hello World takes more than a minute to compile. The machine is an Intel Core 2 Quad CPU Q8400 @ 2.66Ghz with 4GB RAM, and the virtual machine itself has 2GB. It should also be noted that the virtual machine runs VS2008 comfortably and compiles C and C# programs in the negligible time you would expect: http://postimage.org/image/o9y6d1znl/

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions