-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
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
gh-132185: Speed up expanduser() test with large password database #132231
Conversation
Use only random selected entries if the "cpu" resource is not enabled.
@itamaro, how much it takes to test 1000 entries? 10000 entries? |
let me test with these limits |
about a minute for 10k, under 5sec for 1k |
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>
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
…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>
GH-132443 is a backport of this pull request to the 3.13 branch. |
Use only random selected entries if the "cpu" resource is not enabled.