Question on Memory Consumption

Offen
#193 0 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
25/100
Issue-Typ
Bug
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
numpy, python
Bereich
backend

Rechercherichtung

Beginne damit, die in der Issue beschriebene brotli.Compressor-API und das Setup von memory-profiler zu prüfen, und vergleiche sie dann mit dem Aufruf brotli.compress unter Verwendung des angegebenen float16-NumPy-Inputs. Als erledigt gilt die Feststellung, ob process unterstützt wird, sowie die Dokumentation, wie sich der Speicherverbrauch des angeforderten Objekts messen oder die Einschränkung reproduzieren lässt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Hello there! I want to determine the memory consumption when building a brotli.Compressor object utilizing the highest dictionary level (i.e. 11) and an empty dictionary (i.e. b"") for a float16 numpy array of 2k elements.

First things first, i'm approaching this via memory-profiler. An occuring problem is that, when i'm building the brotli.Compressor given the above attributes, i get an error that compressor obeject has no atribute process.

When i'm using compressed = brotli.compress(data,quality,mode,dict), the memory consumption seems to be significantly low.

Therefore:

  1. Do you know an approximation of the memory used building the above described object?
  2. How can i resolve the error compressor object has no attribute process?
Vorherrschende Sprache
Python
Sterne
154
Forks
34
Ø Merge
1 T. 1 Std.
Gemergte PRs (30 T.)
3

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 python-hyper/brotlicffi

Alle Issues in python-hyper/brotlicffi

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

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