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 interpolate_bilinear #2078

Merged
merged 1 commit into from
Dec 25, 2023
Merged

Conversation

JulianKnodt
Copy link
Contributor

@JulianKnodt JulianKnodt commented Dec 19, 2023

  • Remove usage of Array::map,
  • make some math more clearly independent of other lines
  • change assert to debug_assert
  • change some flops to integer ops
  • Flip order of storage for samples from [RGBA; 4] to [4R, 4G, 4B, 4A].

new:
https://rust.godbolt.org/z/GzMsefhPY

old:
https://rust.godbolt.org/z/M67Kx3hWd

- Remove usage of `Array::map`,
- make some math more clearly independent of other lines
- change `assert` to `debug_assert`
- change some flops to integer ops
- Flip order of storage for samples from [RGBA; 4] to [4R, 4G, 4B, 4A].
@fintelia fintelia merged commit 25b284c into image-rs:master Dec 25, 2023
35 checks passed
@JulianKnodt JulianKnodt deleted the opt_interpolate branch December 25, 2023 22:11
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.

2 participants