Closed msdobrescu closed 3 months ago
A batch of about 100 packages installed the files in few minutes, but finalizers took 80 mins. In the meanwhile, the system was barely usable. There is a heavy actvity on disk during the finalization process, especially by some KDE mime types refreshing. I think it needs to be able to either detect if some batch command like that has taken place and do it once per installing batch, either have a global finalizer too.
This is an effect of the request in https://github.com/mudler/luet/issues/312.
Is your feature request related to a problem? Please describe.
Upgrading or installing many packages at once, having several dependecies, ends up in repeating again and again the same finalization steps of a collection. Not sure how it performs related to the atomic package model.
Below is a regular upgrade:
There are multiple problems here. On one hand, Plasma freezes during specific operations, like
update-mime-database /usr/share/mime/
. This may happen in other DEs or apps that are QT based. On other hand, it takes long to finalize. This beats the binary deployment performance. Mainly, repeating the same steps is useless.Describe the solution you'd like
Need control over finalization steps. I propose to have package finalizaers that are trigerred punctually per package basis and a global finalizer per collection. Generic steps to be taken in the global finalizer, particular steps in the package finalizer.
Also, for a better control, can have a 'run once' finalizer entry that would be added to the package finalization but run once per bunch if some other package issues it (by filtering out the identical lines).
Describe alternatives you've considered
Additional context