https://bugs.kde.org/show_bug.cgi?id=509180
Méven <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Latest Commit| |https://invent.kde.org/plas | |ma/discover/-/commit/9236cc | |a1125a624c847956f5bd0a05d2a | |63648a6 Resolution|--- |FIXED Status|ASSIGNED |RESOLVED --- Comment #18 from Méven <[email protected]> --- Git commit 9236cca1125a624c847956f5bd0a05d2a63648a6 by Méven Car. Committed on 15/08/2026 at 18:20. Pushed by meven into branch 'master'. notifier: Read the AppStream metadata only while checking for a distro upgrade The notifier built an AppStream pool when it started and held it until logout, to answer one question: whether a newer release of the distribution exists. That question is asked five minutes after login and once a day after that, and only where PackageKit can upgrade the system at all. Holding the pool is what costs the memory. Measured against a catalog of 3000 components, a pool takes 70 MB of resident memory while its cache is cold and 2 MB once it is warm, which is why the notifier is small on some machines and not on others: a catalog that was refreshed since the cache was built is read from its files. Letting go of the pool hands nothing back on its own, the allocator keeps the heap, so a session that began with a cold cache carried all of it to logout. The default flags also read metainfo files and Flatpak metadata, neither of which can hold a distribution component. On the machine this was measured on that is 10.8 MB against 2.1 MB for the catalog alone. The pool is now built inside the check, from the catalog alone, and let go of when the check is done, and what it needed is handed back to the system. A machine PackageKit cannot upgrade never builds one at all. The check also reads the metadata as it stands rather than as it stood at login. M +6 -0 libdiscover/backends/PackageKitBackend/CMakeLists.txt M +31 -7 libdiscover/backends/PackageKitBackend/PackageKitNotifier.cpp M +0 -2 libdiscover/backends/PackageKitBackend/PackageKitNotifier.h https://invent.kde.org/plasma/discover/-/commit/9236cca1125a624c847956f5bd0a05d2a63648a6 -- You are receiving this mail because: You are watching all bug changes.
