swiftlang / swift-testing

A modern, expressive testing package for Swift
Apache License 2.0
1.78k stars 76 forks source link

[6.0] Reduce overhead of `.expectationChecked` event handling in `#expect()`. #657

Closed grynspan closed 2 months ago

grynspan commented 2 months ago

Explanation: Optimizes the implementation of #expect(), in particular the parts that ask for fully-qualified type names and generate .expectationChecked events. Scope: 6.0 branch Issue: N/A Original PR: https://github.com/swiftlang/swift-testing/pull/610 Risk: Moderate—refactors code inside #expect() and introduces a new lock and atomic value used by them. Testing: New unit test coverage, existing coverage. Reviewer: @briancroom @suzannaratcliff

grynspan commented 2 months ago

@swift-ci test

grynspan commented 2 months ago

See also #659