-
Notifications
You must be signed in to change notification settings - Fork 6k
Add missing WPF memory improvement AppContext switches #49535
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
docs/framework/configure-apps/file-schema/runtime/appcontextswitchoverrides-element.md
Outdated
Show resolved
Hide resolved
…itchoverrides-element.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds documentation for two new AppContext switches related to WPF weak-event pattern improvements. The additions document switches that control cleanup scheduling and memory allocation behavior for the weak-event pattern.
- Adds
Switch.MS.Internal.EnableCleanupSchedulingImprovementsswitch documentation. - Adds
Switch.MS.Internal.EnableWeakEventMemoryImprovementsswitch documentation.
docs/framework/configure-apps/file-schema/runtime/appcontextswitchoverrides-element.md
Show resolved
Hide resolved
docs/framework/configure-apps/file-schema/runtime/appcontextswitchoverrides-element.md
Show resolved
Hide resolved
docs/framework/configure-apps/file-schema/runtime/appcontextswitchoverrides-element.md
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM. Let's ![]()
Two AppContext switches from the .NET Framework June 2019 cumulative update were missing from the documentation.
Changes
Switch.MS.Internal.EnableCleanupSchedulingImprovements- controls WPF cleanup scheduling improvements to reduce memory usageSwitch.MS.Internal.EnableWeakEventMemoryImprovements- controls WPF weak event pattern memory improvements to prevent leaksBoth switches are documented as introduced in .NET Framework 4.7.2 and follow the existing table format.
Example Usage
Fixes #40651
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
Internal previews