Improved transport tunnel handling. Improved memory consumption. Fixed disk I/O bound thread execution time starvation on cache management jobs.

This commit is contained in:
Mark Qvist
2026-04-17 00:07:07 +02:00
parent c77548d299
commit c6778e4e29
4 changed files with 93 additions and 46 deletions
+3 -3
View File
@@ -160,7 +160,7 @@ class Identity:
return None
@staticmethod
def save_known_destinations():
def save_known_destinations(background=False):
# TODO: Improve the storage method so we don't have to
# deserialize and serialize the entire table on every
# save, but the only changes. It might be possible to
@@ -491,9 +491,9 @@ class Identity:
return False
@staticmethod
def persist_data():
def persist_data(background=False):
if not RNS.Transport.owner.is_connected_to_shared_instance:
Identity.save_known_destinations()
Identity.save_known_destinations(background=background)
@staticmethod
def exit_handler():