Skip to content

#883 regressed performance by ~7%  #894

Closed
@ahoppen

Description

@ahoppen

#883 regressed swift-format’s performance by 7-8%. To reproduce run

cd /tmp
git clone https://github.com/apple/swift-syntax.git
cd swift-syntax
git checkout -f 509.0.0

cd path/to/swift-format
swift build -c release
.build/release/swift-format lint --measure-instructions --recursive /tmp/swift-syntax

And compare the instruction count between swift-format with and without #883.

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