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

Remove unnecessary generic parameter from JpegDecoder #2144

Closed

Conversation

Shnatsel
Copy link
Contributor

Drops an unnecessary PhantomData for the reader in JpegDecoder, hopefully reducing code bloat due to needing less monomorphization (I haven't actually checked).

On the flip side this makes JpegDecoder less consistent with other decoders (e.g. PngDecoder needs a generic parameter here) and if zune-jpeg ever supports streaming through standard interfaces we'll need another API break to support that.

So I'm not sure if this is a good idea or not.

@Shnatsel
Copy link
Contributor Author

The author is experimenting with supporting streaming, so it's best not to make API changes that would prevent it. Therefore I'm going to close this.

@Shnatsel Shnatsel closed this Feb 13, 2024
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