Skip to content

gofmt is super-slow for certain code #1628

@griesemer

Description

@griesemer
What steps will reproduce the problem?
1. time gofmt deepequal_test.go (i.e., the attached file)

What is the expected output? What do you see instead?
Formatting this file should take a fraction of a second. Instead, it takes 77s on an
iMac running at 3GHz.

Attachments:

  1. deepequal_test.go (1807 bytes)

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