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

Cache the user agent #12563

Merged
merged 2 commits into from
Apr 9, 2024
Merged

Cache the user agent #12563

merged 2 commits into from
Apr 9, 2024

Conversation

pradyunsg
Copy link
Member

This does not need to be computed multiple times in the same process.

@pradyunsg pradyunsg added the skip news Does not need a NEWS file entry (eg: trivial changes) label Mar 10, 2024
@pfmoore
Copy link
Member

pfmoore commented Mar 10, 2024

lol unit tests failing because they expect to be able to change the environment and see changes in the function result.

I'm inclined to think the benefit of caching isn't sufficient to bother if we need to fix the tests, but it's your call as you'll be doing the work 😉

This does not need to be computed multiple times in the same process.
@uranusjr uranusjr merged commit 06d21db into pypa:main Apr 9, 2024
24 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 24, 2024
@ichard26 ichard26 added the type: performance Commands take too long to run label Dec 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
skip news Does not need a NEWS file entry (eg: trivial changes) type: performance Commands take too long to run
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants