Skip to content

exploding compile times post development branch merge #158

@michael-kenzel

Description

@michael-kenzel

The changes incorporated with 62311a4 result in a massive increase in compile time. Compared to 47f4b88, we see compilation time for a random anyq benchmark rise from less than 1.5 seconds to over 7 seconds. The entire build slows down by over 27×, which makes this effectively a blocking issue, as what used to take < 3 min would now take well over an hour.

Based on some initial perf data (see below), it seems that artic post development branch merge spends almost half of the entire build time just rehashing hash tables during rewriting. THORIN_PROFILE does not yield any warnings regarding collisions, so this appears to be a consequence of the changes rather than just some issue with the hash tables.

repro.art, compile with --emit-llvm to reproduce problem

new (t = 7.2 s)

new

old (t = 1.4 s)

old

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