FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Improve multiserver queue recipe by rhettinger · Pull Request #29012 · python/cpython · GitHub

Repository navigation

Improve multiserver queue recipe - #29012

Merged
rhettinger merged 2 commits into
python:mainfrom
rhettinger:random_recipe_multiserver_queue
Oct 17, 2021
Merged

rhettinger merged 2 commits into
python:mainfrom
rhettinger:random_recipe_multiserver_queue

Conversation

rhettinger commented Oct 17, 2021 •
edited
Loading

Copy link
Copy Markdown
Contributor
  • A million iterations is reasonably fast but gives more consistent simulation results than a shorter run.
  • The heapreplace() function does less work than a heappop() followed by a heappush().
  • The service duration is normally distributed but can never be negative.
  • The initial servers list must be arranged as a heap.

rhettinger merged commit 54a4e1b into python:main Oct 17, 2021

Copy link
Copy Markdown
Contributor

Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10.
🐍🍒⛏🤖

Copy link
Copy Markdown

GH-29013 is a backport of this pull request to the 3.10 branch.

Copy link
Copy Markdown

GH-29014 is a backport of this pull request to the 3.9 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 17, 2021
(cherry picked from commit 54a4e1b)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 17, 2021
(cherry picked from commit 54a4e1b)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip issue skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL