alecthomas / alecthomas/importmagic

Symbol index caching

Offen
#10 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement question
Vorherrschende Sprache
Python
Sterne
122
Forks
21
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Creating a symbol index of a well filled sys.path takes a long time. Caching would help, but raises questions.
- granularity: cache whole indices (serialization with metadata about index search path and indexed modules) or symbols of individual modules
- format: JSON is (somewhat) human readable, pickle is (probably, untested!) faster but unsafe (does it matter?)
- invalidation: go by size/mtime or content hash
- location: let the caller decide, or use a global location like `~/.cache/importmagic`

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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