Skip to content

Assert in Run.scala is inefficient #2636

Closed
@smarter

Description

@smarter

Run.scala contains:

assert(comp.phases.last.last.id <= Periods.MaxPossiblePhaseId)

But phases is a def in Compiler that will allocate every phase. This is pretty wasteful since we then throw away the result. We could probably move this assert inside the definition of phases, or at the point where we actually use phases.

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