python-hyper / python-hyper/brotlicffi
Question on Memory Consumption
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 154
- Fork
- 34
- Merge medio
- 1g 1h
- PR unite (30g)
- 3
Descrizione
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:
- Do you know an approximation of the memory used building the above described object?
- How can i resolve the error compressor object has no attribute process?
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia verificando l’API brotli.Compressor e la configurazione di memory-profiler descritte nell’issue, quindi confrontale con la chiamata a brotli.compress usando l’input NumPy float16 indicato. Il lavoro è completo quando è stato stabilito se process è supportato e sono state documentate le modalità per misurare l’uso della memoria dell’oggetto richiesto o riprodurre la limitazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- numpy, python
- Ambito
- backend
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100