I discovered that the c module is leaking main memory.
Reproduction steps:
Find some 20 big images
use gist.extract() in a for-loop to compute the features for each image
During processing check memory consumption e.g. using top
My CPython is awefull so I couldn't find the leak. I would assume something like an unfinalized filepointer, but that is just guessing.
//Oh, right! I exchanged lear-gist-python with the gist implementation here: https://github.com/malcolmreynolds/pyleargist and that solved the leak for me, so maybe you can snoop around in Malcoms code to find an easy fix. :D
Hi @cartisan , I'm sorry for my late reply.
I added some codes to release memory allocated to store an image and descriptors ( #5 ).
Thank you for your report!
I discovered that the c module is leaking main memory.
Reproduction steps:
gist.extract()
in a for-loop to compute the features for each imagetop
My CPython is awefull so I couldn't find the leak. I would assume something like an unfinalized filepointer, but that is just guessing.
//Oh, right! I exchanged lear-gist-python with the gist implementation here: https://github.com/malcolmreynolds/pyleargist and that solved the leak for me, so maybe you can snoop around in Malcoms code to find an easy fix. :D