Hello Everyone!!
Please excuse me , if this question seems a bit foolish!!
I am just trying to understand the memory management in MicroPython. As a part of it, I am putting this question here.
What happens when I put bunch of print statements in my coroutines (I have nearly 10 coros running at different time frames). Would this impact the memory management ?
Does heap get fragmented, because of this?
Thanks in advance!!
Print statement management in micropython
-
- Posts: 11
- Joined: Mon May 28, 2018 11:48 pm
Re: Print statement management in micropython
Regarding the memory management including some useful debugging techniques:
https://docs.micropython.org/en/latest/ ... l#the-heap
I don't think print() itself explicitly allocates any memory according to the mp_builtin_print() function (py/modbuiltins.c). However, your arguments to print() potentially could involve some memory allocations...
https://docs.micropython.org/en/latest/ ... l#the-heap
I don't think print() itself explicitly allocates any memory according to the mp_builtin_print() function (py/modbuiltins.c). However, your arguments to print() potentially could involve some memory allocations...
Re: Print statement management in micropython
Thanks again!!
Went through the code snippets in the link.
Went through the code snippets in the link.
lnsri22