Speeding up compile times

About Monkey 2 Forums Monkey 2 Programming Help Speeding up compile times

This topic contains 2 replies, has 3 voices, and was last updated by  Mark Sibly 2 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5032

    Hezkore
    Participant

    Is there any way to speed up compile times?
    It takes half a minute to compile my little test game for Windows (which takes about a second in BlitzMax)
    And emscripten takes over a minute to compile.

    I’m on Windows 10.
    SSD with 550MB/s read and 520MB/s write.
    8 Cores at 4.5GHz.
    It feels like things should be faster or am I just stupid?
    Do I need to enable something to speed things up, or is this only cause M2 isn’t complete yet?

    #5091

    Ethernaut
    Participant

    For me only the first time compile takes long, from then on it seems like only modified files get updated and compiling takes only a second or two. But I’m on MacOS, so the compiler is different. Haven’t tried on Windows yet.

    #5093

    Mark Sibly
    Keymaster

    After the first compile (and a bit of the second) the biggest speed issue is the linker, and the mingw linker is not fast.

    I suspect adding support for msvc tools will help and I’ll look into it when I get some spare time. But personally speaking, things are usable enough for me, esp. when compared to monkey1 with largish projects (like transcc which was a huge PITA to modify).

    The emscripten linker *is* slow and there’s nothing that can be done there. Wasm looks to be a lot faster, but that’s a while off yet.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.