Historical bug tracker for the Pacman package manager.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
FS#41525 - [pacsysclean] unnecessary slow
Attached to Project:
Pacman
Opened by Bjoern Hiller (Zaphod) - Monday, 11 August 2014, 12:16 GMT
Last edited by Allan McRae (Allan) - Thursday, 27 November 2014, 01:14 GMT
Opened by Bjoern Hiller (Zaphod) - Monday, 11 August 2014, 12:16 GMT
Last edited by Allan McRae (Allan) - Thursday, 27 November 2014, 01:14 GMT
|
DetailsSummary and Info: pacsysclean is slow due to the use of bash for filtering.
A possible patch is attached which uses gawk for the whole processing. Explicitely stating gawk as sorted for loops are a GNU-extension. Also, the output format is slightly changed as all packages with the same size are printed on one line. Timing goes down from 8.9s to 1.0s on a Raspberry Pi and 1.0s to 0.2s on a i7-860. |
This task depends upon
Closed by Allan McRae (Allan)
Thursday, 27 November 2014, 01:14 GMT
Reason for closing: Fixed
Additional comments about closing: pacsysclean removed in commit bb878217cd
Thursday, 27 November 2014, 01:14 GMT
Reason for closing: Fixed
Additional comments about closing: pacsysclean removed in commit bb878217cd
pacsysclean_faster.patch
This is problematic because we explicitly do not use gawk elsewhere in the codebase -- usage of awk is portable is nawk and mawk, as well.
Note there is a replacement script available that is fast and fixes this issue.