summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2021-07-28 21:01:04 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2021-07-28 21:01:04 (GMT)
commit28588269215aebf36c89cbb4c1b8014929340ac4 (patch)
treebbfcece49226a6120e07f3b8bc1f48954c0cec88 /.github
parentbbadbd34c74ef2ef4da0ccda7d5250987374bcbb (diff)
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>
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions