Avoid more stat() calls in importlib

Offen
#58,275 12 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
30/100
Issue-Typ
Refactoring
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
python
Bereich
performance

Rechercherichtung

Start by reviewing the linked imptime.patch and locating the importlib implementation it targets. Count the affected stat() calls, then run the relevant importlib tests and verify that the optimization preserves import behavior while avoiding the unnecessary calls.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

performance stdlib topic-importlib
BPO 14067
Nosy @ncoghlan, @pitrou, @ericsnowcurrently, @jimjjewett, @nanjekyejoannah
Files
  • imptime.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2012-02-20.21:18:06.926>
    labels = ['library', 'performance']
    title = 'Avoid more stat() calls in importlib'
    updated_at = <Date 2021-10-23.15:13:02.228>
    user = 'https://github.com/pitrou'
    

    bugs.python.org fields:

    activity = <Date 2021-10-23.15:13:02.228>
    actor = 'nanjekyejoannah'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2012-02-20.21:18:06.926>
    creator = 'pitrou'
    dependencies = []
    files = ['24584']
    hgrepos = []
    issue_num = 14067
    keywords = ['patch']
    message_count = 10.0
    messages = ['153809', '153814', '153815', '153816', '153840', '153891', '154424', '154486', '404878', '404879']
    nosy_count = 6.0
    nosy_names = ['ncoghlan', 'pitrou', 'Arfrever', 'eric.snow', 'Jim.Jewett', 'nanjekyejoannah']
    pr_nums = []
    priority = 'low'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue14067'
    versions = ['Python 3.3']
    

    Vorherrschende Sprache
    Python
    Sterne
    77.2k
    Forks
    36k
    Ø Merge
    1 T. 9 Std.
    Gemergte PRs (30 T.)
    558

    Beitragsleitfaden

    Beitragsleitfaden öffnen

    Erste Schritte

    1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
    2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
    3. Forken Sie das Repository und arbeiten Sie in einem Branch.
    4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

    Mehr aus python/cpython

    Alle Issues in python/cpython

    Ähnliche Issues

    Weitere Issues zu Python

    Neue Issues direkt in Ihr Postfach

    Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.