Skip to content

enc.cc: extract member vars from loops#139

Merged
jzern merged 1 commit intowebmproject:mainfrom
jzern:const-loop-vars
May 1, 2025
Merged

enc.cc: extract member vars from loops#139
jzern merged 1 commit intowebmproject:mainfrom
jzern:const-loop-vars

Conversation

@jzern
Copy link
Copy Markdown
Contributor

@jzern jzern commented Apr 29, 2025

This focuses on member variables used in branches within loops which are
constant through the loop's execution. This avoids a reload of the value
and may allow the compiler to extract the condition and split the loops.

This focuses on member variables used in branches within loops which are
constant through the loop's execution. This avoids a reload of the value
and may allow the compiler to extract the condition and split the loops.
Comment thread src/enc.cc
Comment thread src/enc.cc
@jzern jzern requested a review from skal65535 April 29, 2025 18:18
@jzern jzern marked this pull request as ready for review April 29, 2025 18:19
@jzern
Copy link
Copy Markdown
Contributor Author

jzern commented Apr 29, 2025

Some micro optimizations while looking around in response to something else.

@skal65535
Copy link
Copy Markdown
Collaborator

LGTM

@jzern jzern merged commit dad1362 into webmproject:main May 1, 2025
4 checks passed
@jzern jzern deleted the const-loop-vars branch May 1, 2025 19:43
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