Skip to content

Ysafe-init-global causes extreme compilation slowdown #24544

@Bersier

Description

@Bersier

Compiler version

3.8.0-RC1

Minimized code

val symbols: Set[Char] = Set.from('a' to 'z') ++ Set.from('a' to 'z')

Issue

Compiling this one-liner with -Ysafe-init-global takes over one minute. And it's easy to blow up that time with a few more lines of code. Long compile times, as per the halting problem, become indistinguishable from non-termination, and non-termination is worse than crashing. So while it is not technically a crash, it is arguably worse.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions