Add speedup module for CPython

Offen
#297 8 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
20/100
Issue-Typ
Feature
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
python

Rechercherichtung

Start by tracing the packet-reading and packet-parsing paths in PyMySQL and review how the existing io-based reading change relates to them. The issue proposes replacing parsing classes with flat functions and builtin types before adding a C speedup module, so clarify which stage is in scope and define completion through measured parsing speed on PyPy.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

There are two bottlenecks.

  1. Reading packet
  2. Parsing packet

1 is resolved by using io module.

To resolve issue 2, we should remove classes for parsing packets, and use simple flat function and
builtin types. It make PyMySQL on PyPy faster.
Then, we can easily replace them with speedup module written in C.

Vorherrschende Sprache
Python
Sterne
7.8k
Forks
1.4k
Ø Merge
5 Std. 40 Min.
Gemergte PRs (30 T.)
5

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

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 PyMySQL/PyMySQL

Alle Issues in PyMySQL/PyMySQL

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

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