Skip to content

enc.cc: mark some Encoder classes as final#140

Merged
jzern merged 1 commit intowebmproject:mainfrom
jzern:enc-final-class
May 1, 2025
Merged

enc.cc: mark some Encoder classes as final#140
jzern merged 1 commit intowebmproject:mainfrom
jzern:enc-final-class

Conversation

@jzern
Copy link
Copy Markdown
Contributor

@jzern jzern commented Apr 29, 2025

These classes are mostly end state and not derived from further.

These classes are mostly end state and not derived from further.
@jzern jzern marked this pull request as ready for review April 29, 2025 18:19
@jzern jzern requested a review from skal65535 April 29, 2025 18:20
@jzern
Copy link
Copy Markdown
Contributor Author

jzern commented Apr 29, 2025

MemorySink is also a candidate. Just some speculative optimization.

Copy link
Copy Markdown
Collaborator

@skal65535 skal65535 left a comment

Choose a reason for hiding this comment

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

yes these are totally final. For MemorySink, need to check if it's exposed to the user somehow through the API

@jzern
Copy link
Copy Markdown
Contributor Author

jzern commented May 1, 2025

For MemorySink, need to check if it's exposed to the user somehow through the API

ByteSink is, but MemorySink is in bit_writer.h. I'll take a look at that separately, bit writing is quite costly with larger resolution images.

@jzern jzern merged commit c7a5c27 into webmproject:main May 1, 2025
4 checks passed
@jzern jzern deleted the enc-final-class branch May 1, 2025 19:41
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