Skip to content

Conversation

LikeLakers2
Copy link

@LikeLakers2 LikeLakers2 commented Sep 13, 2025

While reviewing my previous PR for errors, I happened to notice that these tuples are somewhat useless. They seem to be an artifact of #384, one that wasn't cleaned up later on.

Since removing these tuples cleans up the code, and may (if rustc isn't already smart enough to detect that these tuples are useless) improve performance slightly, all without changing the behavior of the code, I went ahead and removed them.


Edit: Seems this turned into a small refactor of filter3x3. :p

Copy link
Member

@197g 197g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find of a rough spot, I haven't had a look at the implementation for a while.

@LikeLakers2 LikeLakers2 changed the title Remove some useless tuples from crate::imageops::sample::filter3x3() Slight cleanup of crate::imageops::sample::filter3x3() Sep 13, 2025
@LikeLakers2
Copy link
Author

Right. Unless anybody spots anything else, I think this PR should be good for merging - or at least, ready for final review. :)

@LikeLakers2
Copy link
Author

Is there anything blocking this from being merged?

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