Skip to content

perf(manager): batch package lookup and add persistent operation logging#3

Open
Parviz-sudo wants to merge 1 commit into
parchlinux:mainfrom
Parviz-sudo:main
Open

perf(manager): batch package lookup and add persistent operation logging#3
Parviz-sudo wants to merge 1 commit into
parchlinux:mainfrom
Parviz-sudo:main

Conversation

@Parviz-sudo

Copy link
Copy Markdown
Member

Changes

  • Batch package checking: Replaced per-package pacman -Qq calls with a single get_installed_packages_set() call in install_profile and remove_profile, reducing subprocess overhead when handling profiles with multiple packages.
  • Operation logging: Added persistent logging to ~/.local/share/parch-driver-manager/operations.log so install/remove actions are recorded with timestamps for easier debugging and auditing.

Why

Previously, each package in a profile triggered a separate pacman -Qq subprocess call. With the new approach, all installed packages are fetched once per operation.

Logging helps users and maintainers trace what driver changes were made and when, without relying solely on the in-app log view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant