We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Each call to __init__ allocates memory for the fec matrix. When the object is collected, only the most recently allocated matrix is freed.
__init__
Observable with this program:
import zfec e = zfec.Encoder(255, 256) for i in range(100000): e.__init__(255, 256)
memory usage will grow as the program runs.
Encoder and Decoder should probably refuse multiple __init__ calls.
Encoder
Decoder
The text was updated successfully, but these errors were encountered:
... why would anyone call __init__ multiple times?
Sorry, something went wrong.
Other than to cause memory to leak? I can't think of a good reason.
No branches or pull requests
Each call to
__init__
allocates memory for the fec matrix. When the object is collected, only the most recently allocated matrix is freed.Observable with this program:
memory usage will grow as the program runs.
Encoder
andDecoder
should probably refuse multiple__init__
calls.The text was updated successfully, but these errors were encountered: