python / python/cpython

use argument clinic for more socket functions

オープン
#135,748 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

extension-modules performance topic-argument-clinic topic-socket type-refactor
主要言語
Python
スター
77.2k
フォーク
35.9k
PR マージ指標
PR 指標を取得中

説明

Some methods of socket still uses VARARGS calling convention which is slow, AC can be used to simplify arg parsing as well as speed up the arg parsing. This is important for asyncio as it heavily calls these API.

This shows up in asyncio flame graphs as well:

Image

Linked PRs
  • gh-135749
  • gh-155257

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、まだVARARGS呼び出し規約を使用しているsocketメソッドと、関連付けられたPR gh-135749およびgh-155257を確認します。asyncioのフレームグラフをコンテキストとして使用します。完了の条件は、対象となるsocket引数の解析でArgument Clinicを使用し、報告されているasyncioの解析オーバーヘッドを改善することです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
c, python
領域
networking, performance
issue の種類
リファクタリング
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。