From 54f27ffdaccb0a944723650c6f56944c5238e676 Mon Sep 17 00:00:00 2001 From: deajan Date: Thu, 9 Jan 2025 21:15:42 +0100 Subject: [PATCH] Note for my future self: Don't refactor this --- npbackup/gui/__main__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/npbackup/gui/__main__.py b/npbackup/gui/__main__.py index 2b06e98..0fe8297 100644 --- a/npbackup/gui/__main__.py +++ b/npbackup/gui/__main__.py @@ -212,6 +212,7 @@ def _make_treedata_from_json(ls_result: List[dict]) -> sg.TreeData: "Using basic json representation for data which is slow and memory hungry. Consider using a newer OS that supports Python 3.8+" ) + # For performance reasons, we don't refactor this code in order to avoid allocating more variables for entry in ls_result: # Make sure we drop the prefix '/' so sg.TreeData does not get an empty root if HAVE_MSGSPEC: