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

Prototype for faster _randbelow #9

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

matthiasgoergens
Copy link
Owner

This PR is just to get the automated tests to run on Windows, Linux and MacOS.

corona10 and others added 2 commits August 21, 2022 00:11
…iprocessing docs (pythonGH-96112)

Clearly link concurrent.futures from threading & multiprocessing docs

Also link directly to asyncio from the beginning of the threading docs.
@matthiasgoergens matthiasgoergens force-pushed the matthias/faster-and-checked-_randbelow branch from 45f2a4f to 0985028 Compare August 21, 2022 05:17
@matthiasgoergens matthiasgoergens force-pushed the matthias/faster-and-checked-_randbelow branch 2 times, most recently from f7be51a to cf32c7c Compare August 22, 2022 08:30
This change speeds up the most common code path through
`_randbelow_with_getrandbits`.

That improves the execution speed of functions like `random.randrange`.

See python#96163 for benchmarks and a
discussion.
@matthiasgoergens matthiasgoergens force-pushed the matthias/faster-and-checked-_randbelow branch from cf32c7c to c9c2812 Compare August 22, 2022 14:10
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.

6 participants