wasp-os/wasp
Daniel Thompson 2858826921 apps: Replace del self.x with self.x = None in all apps
Testing has demonstrated that del self.x does not make the memory used to
store x available for garbage collection.

There is clearly an additional reference from another place. In fact
*after* del self.x then the memory can be made available for GC by
assignment (e.g. self.x = None). However I haven't found how to release
this reference and there is nothing in self.__dict__ that can help.

For now we'll use a twp-step process where we set the variable to None
before deleting it.

This has a big impact on memory usage. For Software it is almost 1k
(a.k.a. about 10% impact on free RAM).

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-07-28 22:01:04 +01:00
..
apps apps: Replace del self.x with self.x = None in all apps 2021-07-28 22:01:04 +01:00
boards draw565: Improve line wrapping 2021-07-22 20:04:50 +01:00
drivers drivers: cst816s: Add a version() method 2021-06-20 17:26:32 +01:00
fonts Advanced alarm app 2021-07-25 08:56:14 +01:00
modules bma42x-upy: Implement step counter reset 2020-12-30 09:56:22 +00:00
boot.py Add licensing information for all wasp-os files. 2020-03-22 15:40:18 +00:00
draw565.py draw565: Improve line wrapping 2021-07-22 20:04:50 +01:00
gadgetbridge.py Added weather application. 2021-06-03 21:43:38 +01:00
icons.py icons: Introduce new clock icon 2021-06-20 10:18:58 +01:00
logo.py Add licensing information for all wasp-os files. 2020-03-22 15:40:18 +00:00
main.py Introduction basic notification support 2020-07-19 20:50:33 +01:00
ppg.py apps: heart: Implement a debug mode to copy out raw data 2021-05-05 21:06:39 +01:00
requirements.txt Update requirements.txt 2021-03-09 21:15:02 +00:00
shell.py Add licensing information for all wasp-os files. 2020-03-22 15:40:18 +00:00
steplogger.py apps: steps: Add a history graph 2021-02-25 08:00:03 +00:00
wasp.py wasp: Manager: Fix the capture of the post-init free RAM 2021-06-21 21:41:51 +01:00
widgets.py Advanced alarm app 2021-07-25 08:56:14 +01:00