Skip to content

Eliminate unnecessary cloning in any/all loop#324

Merged
divarvel merged 1 commit into
eclipse-biscuit:mainfrom
saoirse-a:repeat-cloning-in-any-all-loop
Apr 22, 2026
Merged

Eliminate unnecessary cloning in any/all loop#324
divarvel merged 1 commit into
eclipse-biscuit:mainfrom
saoirse-a:repeat-cloning-in-any-all-loop

Conversation

@saoirse-a

Copy link
Copy Markdown
Contributor

The RHS expression only needs to be constructed once, not repeatedly inside the loop, because evaluating it does not consume it.

The RHS expression only needs to be constructed once, not repeatedly
inside the loop, because evaluating it does not consume it.

@divarvel divarvel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Neat! How did you notice it?

@saoirse-a

saoirse-a commented Apr 17, 2026

Copy link
Copy Markdown
Contributor Author

I asked Claude to identify low hanging fruit for optimising the authorisation logic; it identifies this issue as well as #325 (and also several non-issues naturally) and then I implemented these changes by hand.

@divarvel divarvel merged commit 852e004 into eclipse-biscuit:main Apr 22, 2026
4 checks passed
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