Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.0] Reduce overhead of .expectationChecked event handling in #expect() (take 2) #659

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Sep 4, 2024

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: #610, also includes fixup commit 6ba948a
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

…pect()`. (#657)

**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:** #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
Copy link
Contributor Author

grynspan commented Sep 4, 2024

@swift-ci test

@grynspan grynspan changed the title Jgrynspan/jgrynspan/133517028 minimize expectation checked overhead 6.0 take 2 [6.0] Reduce overhead of .expectationChecked event handling in #expect() (take 2) Sep 4, 2024
@grynspan
Copy link
Contributor Author

grynspan commented Sep 4, 2024

Copy link
Contributor

@briancroom briancroom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM pending successful toolchain build!

@grynspan
Copy link
Contributor Author

grynspan commented Sep 4, 2024

Toolchain build isn't 100% complete, but it's past building Swift Testing, so we appear to be in the clear.

@grynspan grynspan merged commit 5887703 into release/6.0 Sep 4, 2024
3 checks passed
@grynspan grynspan deleted the jgrynspan/jgrynspan/133517028-minimize-expectationChecked-overhead-6.0-take-2 branch September 4, 2024 16:54
@grynspan grynspan added this to the Swift 6.0.1 milestone Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working performance Performance issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants