Closed
Description
Space is allocated on the heap for docstrings even though they are inaccessible. The garbage collector will get rid of them eventually, but pfalcon reckons the initial allocation could be avoided.
This is what I'm basing this on, hopefully I am interpreting it correctly (tmp102 has a large module docstring):
>>> import tmp102
>>> pyb.info()
...
GC:
102208 total
10320 : 91888
1=85 2=42 m=347
>>> gc.collect()
...
GC:
102208 total
3728 : 98480
1=63 2=32 m=13
Discussed here on the forums: http://forum.micropython.org/viewtopic.php?f=5&t=154&start=10
Metadata
Metadata
Assignees
Labels
No labels