Skip to content

perf(auth): use generator expression in any() to allow short-circuiting - #17937

Merged
parthea merged 1 commit into
googleapis:mainfrom
attharva-24:perf/requests-any-generator
Jul 29, 2026
Merged

perf(auth): use generator expression in any() to allow short-circuiting#17937
parthea merged 1 commit into
googleapis:mainfrom
attharva-24:perf/requests-any-generator

Conversation

@attharva-24

Copy link
Copy Markdown
Contributor

perf(auth): use generator expression in any() to allow short-circuiting

@attharva-24
attharva-24 requested review from a team as code owners July 29, 2026 19:14
@attharva-24 attharva-24 self-assigned this Jul 29, 2026

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request optimizes the mTLS URL prefix check in packages/google-auth/google/auth/transport/requests.py by replacing a list comprehension with a generator expression inside the any() function, which improves memory efficiency. There are no review comments, and I have no feedback to provide.

@parthea
parthea merged commit 735e565 into googleapis:main Jul 29, 2026
39 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