Cost of updating values of particular keys in a dictionary inside a coro

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
lnsri22
Posts: 65
Joined: Fri Aug 17, 2018 12:16 pm
Location: India

Cost of updating values of particular keys in a dictionary inside a coro

Post by lnsri22 » Tue Jan 22, 2019 9:38 am

Hello Everyone!!

I have a base dictionary with up to 20 keys for holding various sensor params.

I have been updating these inside various coroutines (based on uasyncio)

What would be the memory costs or side-effects(such as heap fragmentation)


Thanks in advance!!
lnsri22 :)

lnsri22
Posts: 65
Joined: Fri Aug 17, 2018 12:16 pm
Location: India

Re: Cost of updating values of particular keys in a dictionary inside a coro

Post by lnsri22 » Tue Jan 22, 2019 9:39 am

I create the dictionary only once on reboot.

From then and there , I only update the values, for your kind information
lnsri22 :)

Post Reply