Skip to content

Conversation

@rhettinger
Copy link
Contributor

@rhettinger rhettinger commented Oct 17, 2021

  • 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 rhettinger merged commit 54a4e1b into python:main Oct 17, 2021
@miss-islington
Copy link
Contributor

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

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Oct 17, 2021
@bedevere-bot
Copy link

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

@bedevere-bot
Copy link

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 <[email protected]>
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 <[email protected]>
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