We are writing some real-time device controllers with embedded python.
We would like to control and predict (to some degree, not perfectly) what is being put on the Python Heap, to minimize and bound our garbage collections (which we will invoke manually). Our main work is done in "C". We want to use a restricted subset of Python to do data transform and other tasks.
What is a list of items that go on the heap? (or is it easier to list what goes only on the stack?)
- Lists
- Tuples
- (what about arrays of scalars such as int, float, etc)?
- What about an array of ustructs (structs pointing to C structs)?