Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question on Memory Consumption #193

Open
AlexandrosEmvoliadis opened this issue Aug 24, 2023 · 0 comments
Open

Question on Memory Consumption #193

AlexandrosEmvoliadis opened this issue Aug 24, 2023 · 0 comments

Comments

@AlexandrosEmvoliadis
Copy link

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?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant