Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-142434: Use ppoll() if available in select.poll#143529

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 2 commits intopython:mainfromvstinner:ppoll
Jan 15, 2026

Conversation

@vstinner
Copy link
Member

@vstinnervstinner commentedJan 7, 2026
edited by github-actionsbot
Loading

SpecLad reacted with thumbs up emoji
@vstinner
Copy link
MemberAuthor

vstinner commentedJan 7, 2026
edited
Loading

Example:

importsocket,time,selects1,s2=socket.socketpair()poll=select.poll()poll.register(s1,select.POLLIN)ms=1e-6start_time=time.perf_counter()poll.poll(ms)dt=time.perf_counter()-start_timeprint(f"dt:{dt*1e6:.1f} us")s1.close()s2.close()

Results on Linux:

  • Without this change:dt: 1099.4 us
  • With this change:dt: 61.7 us =>18x better resolution
corona10 and BoboTiG reacted with thumbs up emoji

@vstinnervstinner merged commit3514ba2 intopython:mainJan 15, 2026
46 checks passed
@vstinnervstinner deleted the ppoll branchJanuary 15, 2026 12:49
@vstinner
Copy link
MemberAuthor

Oh, FreeBSD 15 buildbot fails to build because of ppoll():#144309.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@erlend-aaslanderlend-aaslandAwaiting requested review from erlend-aaslanderlend-aasland is a code owner

@corona10corona10Awaiting requested review from corona10corona10 is a code owner

@AA-TurnerAA-TurnerAwaiting requested review from AA-TurnerAA-Turner is a code owner

@emmatypingemmatypingAwaiting requested review from emmatypingemmatyping is a code owner

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@vstinner

[8]ページ先頭

©2009-2026 Movatter.jp