Skip to content

Exponential compilation time of "1" + 1 + "1" + ...  #1687

Closed
@OlivierBlanvillain

Description

@OlivierBlanvillain

The following complies in 11s:

object O {
  def f: String = {
    "1" + 1 + "1" + 1 +
    "1" + 1 + "1" + 1 +
    "1" + 1 + "1" + 1 +
    "1" + 1 + "1" + 1 +
    "1" + 1 + "1" + 1 +
    "1" + 1 + "1" + 1
  }
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions