Skip to content

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

2 participants