mirror of
https://github.com/markqvist/LXMF.git
synced 2025-07-28 17:44:32 -04:00
Memory optimisations
This commit is contained in:
parent
44d1d992f8
commit
bfed126a7c
1 changed files with 2 additions and 2 deletions
|
@ -358,14 +358,14 @@ class LXMPeer:
|
||||||
@property
|
@property
|
||||||
def handled_messages(self):
|
def handled_messages(self):
|
||||||
pes = self.router.propagation_entries.copy()
|
pes = self.router.propagation_entries.copy()
|
||||||
hm = list(filter(lambda tid: self.destination_hash in self.router.propagation_entries[tid][4], pes))
|
hm = list(filter(lambda tid: self.destination_hash in pes[tid][4], pes))
|
||||||
self._hm_count = len(hm); del pes
|
self._hm_count = len(hm); del pes
|
||||||
return hm
|
return hm
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def unhandled_messages(self):
|
def unhandled_messages(self):
|
||||||
pes = self.router.propagation_entries.copy()
|
pes = self.router.propagation_entries.copy()
|
||||||
um = list(filter(lambda tid: self.destination_hash in self.router.propagation_entries[tid][5], pes))
|
um = list(filter(lambda tid: self.destination_hash in pes[tid][5], pes))
|
||||||
self._um_count = len(um); del pes
|
self._um_count = len(um); del pes
|
||||||
return um
|
return um
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue