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

Optimize error propagation #2819

Merged
merged 5 commits into from Jan 27, 2024
Merged

Optimize error propagation #2819

merged 5 commits into from Jan 27, 2024

Conversation

kennykerr
Copy link
Collaborator

The windows-core crate provides rich error propagation for Windows via the standard Result type and a Windows-specific Error type that supports a variety of Windows-specific error reporting and propagation APIs that have been used over the years. Originally it was tailored for WinRT, but with this update it is now optimized for the fastest possible call paths to reduce the overhead even in the case of error propagation. It is now also a lot more careful to avoid redundantly storing and retrieving error information, eliminating a lot of unnecessary execution and copies. Whether you're interested only in Win32, COM, or WinRT APIs it will give you the best possible performance and the most accurate error information available for the given API technology.

@kennykerr kennykerr merged commit a2fbd10 into master Jan 27, 2024
65 checks passed
@kennykerr kennykerr deleted the fast-error branch January 27, 2024 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant