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

Unnecessary loop #75

Open
yyzdtccjdtc opened this issue Jun 7, 2022 · 3 comments
Open

Unnecessary loop #75

yyzdtccjdtc opened this issue Jun 7, 2022 · 3 comments

Comments

@yyzdtccjdtc
Copy link

'continue30: loop {

This loop continue30 is unnecessary because it will eventually break at line 1018. If we remove this loop and change all the break 'continue30; into continue and change all the break 'break29; into break, the execution time will decreased from 3.76s to 3.43s based on my test, which is a 1.1x speedup.

Hope this information helps!

@lesniewski
Copy link
Collaborator

I believe this code was auto-generated, right @danielrh ?

@pengfei-su
Copy link

Hello, I just run into this. Will it be improved since this 10% speedup looks easy to get?

@pengfei-su
Copy link

@danielrh Is it a bug or an unnecessary loop? The last statement in this loop is a break, indicating it is executed once whatsoever. I don't see why 'continue30: loop{...} is needed.

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

No branches or pull requests

3 participants