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 Read to use Math.Min #97

Merged
merged 1 commit into from
Jul 12, 2024
Merged

Optimize Read to use Math.Min #97

merged 1 commit into from
Jul 12, 2024

Conversation

brantburnett
Copy link
Owner

Math.Min can be optimized to a single instruction on some CPU architectures and avoid a branch. This also makes the method smaller.

Math.Min can be optimized to a single instruction on some CPU
architectures and avoid a branch. This also makes the method smaller.
@brantburnett brantburnett merged commit e7e3934 into main Jul 12, 2024
30 checks passed
@brantburnett brantburnett deleted the read-opt branch July 12, 2024 18:36
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.

1 participant