Page 1 of 1

qstr pool in memory not garbage collected

Posted: Thu Dec 08, 2016 8:50 am
by amar123deep
Hi, I am porting an IoT software stack with micropython as a library. Currently looking into garbage collection. I am able to release most of the stuff except qstr pool which is created after executing mp_store_name. I execute this function to fill the class instance.

Any help in releasing this from memory?

Re: qstr pool in memory not garbage collected

Posted: Thu Dec 08, 2016 7:02 pm
by dhylands
Currently, I don't think that is any way to release the qstr memory. qstr's are shared, and the code that uses them just uses a qstr index.

So it would need a separate garbage collection phase.