FS#15198 - pacman -Sy optimization
Attached to Project:
Pacman
Opened by Laszlo Papp (djszapi) - Sunday, 21 June 2009, 09:32 GMT
Last edited by Dan McGee (toofishes) - Monday, 15 March 2010, 00:23 GMT
Opened by Laszlo Papp (djszapi) - Sunday, 21 June 2009, 09:32 GMT
Last edited by Dan McGee (toofishes) - Monday, 15 March 2010, 00:23 GMT
|
Details
Hello!
I've got from my friend a thread of pacman optimalization ceremony. It succedded in 'frugalware' pacman, but it's more quicker now. You can see here the detailed description: http://thread.gmane.org/gmane.linux.frugalware.devel/5119/focus=5132 If possible please implement it in the 'archlinux' pacman version. Sincerelly, Laszlo Papp |
This task depends upon
Closed by Dan McGee (toofishes)
Monday, 15 March 2010, 00:23 GMT
Reason for closing: Implemented
Additional comments about closing: http://projects.archlinux.org/pacman.git /commit/?id=2f4ee4341d1f97d95a9914755688 8212d1cd4507
Monday, 15 March 2010, 00:23 GMT
Reason for closing: Implemented
Additional comments about closing: http://projects.archlinux.org/pacman.git /commit/?id=2f4ee4341d1f97d95a9914755688 8212d1cd4507
The speed up is done by only extracting the new folders in the db archive on -Sy operations as regular updater will only have a few package differences.
So this seems a waste of time as we are going to implement a full tar backend one day... (
FS#8586). Then no extraction would need done at. Using tar based local db would also speed up -Q operations.http://bbs.archlinux.org/viewtopic.php?id=65313
I agree with Allan here, we should implement
FS#8586instead of this request [or use ~sqlite :-P].But if we reject this bug because of future plan for pacman, it is useful to know this script exists in the meantime :)
If
FS#8586is not implemented soon (in 3.3, for example), we may want to implement this FR first, because we can reach _notable_ speed-up at low "coding cost".However, there is a draw-back I must mention:
If the sync database becomes corrupt, but the package directory remains valid, -Sy may not fix this sync database corruption, which is weird. (Frugalware guys kept the old behavior with -Syy to workaround this.)
Not possible. Unless if you provide a patch, then it will be considered.
Obviously one which applies to archlinux pacman, master git branch.
http://projects.archlinux.org/pacman.git/commit/?id=14ab02e2
http://projects.archlinux.org/pacman.git/commit/?id=3dc87851
But not the final one:
http://code.toofishes.net/cgit/xavier/pacman.git/commit/?h=working&id=e7aa4cc6
I got a very useful review from Henning Garus though and re-submitted a fixed patch.