I'm using kodo-python library in my project. I need to use a buffer of decoders for multiple generations, where the decoder is like:
decoder = kodo.RLNCDecoder(
field=kodo.field.binary8,
symbols=rlncPacket.symbols,
symbol_size=self.args.symbol_size)
frame_length = rlncPacket.symbols
data_out = bytearray(decoder.block_size())
decoder.set_symbols_storage(data_out)
I tried dictionary to save decoder and data_out object but I got stack overflow, although I was making sure to delete on generation completion.
# empty dictionary
my_dict = {}
my_dict[gen_no] = [decoder, data_out]
del my_dict[gen_no] #on completion
Have you tried any solution that works well for you?
Could you please share your experiences?