8000 gh-132185: Speed up expanduser() test with large password database by serhiy-storchaka · Pull Request #132231 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-132185: Speed up expanduser() test with large password database #132231

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

Merged
merged 6 commits into from
Apr 12, 2025

Conversation

serhiy-storchaka
Copy link
Member
@serhiy-storchaka serhiy-storchaka commented Apr 7, 2025

Use only random selected entries if the "cpu" resource is not enabled.

Use only random selected entries if the "cpu" resource is not enabled.
@serhiy-storchaka
Copy link
Member Author

@itamaro, how much it takes to test 1000 entries? 10000 entries?

@itamaro
Copy link
Contributor
itamaro commented Apr 7, 2025

@itamaro, how much it takes to test 1000 entries? 10000 entries?

let me test with these limits

@itamaro
Copy link
Contributor
itamaro commented Apr 7, 2025

@itamaro, how much it takes to test 1000 entries? 10000 entries?

about a minute for 10k, under 5sec for 1k

@serhiy-storchaka
Copy link
Member Author

Thank you. This is much slower than on normal Linux PC, so I would be wrong without your data.

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
@hugovk hugovk removed the needs backport to 3.12 only security fixes label Apr 9, 2025
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) April 12, 2025 15:50
@serhiy-storchaka serhiy-storchaka merged commit 842ab81 into python:main Apr 12, 2025
38 checks passed
@miss-islington-app
Copy link

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 12, 2025
…ase (pythonGH-132231)

Use only a limited number of randomly selected entries.
(cherry picked from commit 842ab81)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-app
Copy link
bedevere-app bot commented Apr 12, 2025

GH-132443 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Apr 12, 2025
serhiy-storchaka added a commit that referenced this pull request Apr 12, 2025
…base (GH-132231) (GH-132443)

Use only a limited number of randomly selected entries.
(cherry picked from commit 842ab81)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0