We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I think those MidX, MidY, Top, Bottom, Left, Right, _halfWidth, _halfHeight should be computed property such as:
public readonly double Top => X;
This would save much memory and I think that may increase performance because of much less CPU cache invalidation.
The text was updated successfully, but these errors were encountered:
sdcb, thanks for your message. Maybe you're right. I'll do a performance comparison for both versions.
Sorry, something went wrong.
I ran a performance test and I did not notice a significant difference. So I'll choose your version to save memory. Thank you for your advice.
No branches or pull requests
I think those MidX, MidY, Top, Bottom, Left, Right, _halfWidth, _halfHeight should be computed property such as:
public readonly double Top => X;
This would save much memory and I think that may increase performance because of much less CPU cache invalidation.
The text was updated successfully, but these errors were encountered: