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

Refactoring and tweaks #1120

Closed
wants to merge 4 commits into from
Closed

Refactoring and tweaks #1120

wants to merge 4 commits into from

Conversation

Sergio0694
Copy link
Member

Fixes #1111.

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following matches the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

  • Upgrading all the various struct constraints to unmanaged (eg. in where TPixel : unmanaged, IPixel<TPixel>, instead of the previous where TPixel : struct, IPixel<TPixel>)
  • Marking all the struct-s, or at least all the various method/property getters/etc. as readonly as possible (this is more expressive and avoids safety copies by the compiler)

@Sergio0694 Sergio0694 closed this Feb 22, 2020
@Sergio0694
Copy link
Member Author

Closing due to CI build issues, restarting from scratch in another PR.

@Sergio0694 Sergio0694 mentioned this pull request Feb 22, 2020
6 tasks
@Sergio0694 Sergio0694 deleted the sp/refactoring-and-tweaks branch February 27, 2020 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update type constraints and other optimizations
1 participant