FS#1572 - [Patch] Pacman searching speed improvements
Attached to Project:
Pacman
Opened by Tommi Rantala (ttrantal) - Monday, 04 October 2004, 10:05 GMT
Last edited by Judd Vinet (judd) - Monday, 04 October 2004, 18:28 GMT
Opened by Tommi Rantala (ttrantal) - Monday, 04 October 2004, 10:05 GMT
Last edited by Judd Vinet (judd) - Monday, 04 October 2004, 18:28 GMT
|
Details
Here's a patch that speeds up searching.
Search for xorg: =============== $ time pacman -Ss xorg current/xorg 11R6.8.1-1 A fork of the XFree86 Project with a GPL-compatible license extra/xfree86 4.4.0-3 Freely redistributable implementation of the X Window System real 0m6.303s user 0m1.168s sys 0m3.995s $ time ./pacman -Ss xorg current/xorg 11R6.8.1-1 A fork of the XFree86 Project with a GPL-compatible license extra/xfree86 4.4.0-3 Freely redistributable implementation of the X Window System real 0m0.366s user 0m0.123s sys 0m0.234s Search for kde: ============== $ time pacman -Ss kde >1 real 0m5.513s user 0m1.094s sys 0m3.502s $ time ./pacman -Ss kde >2 real 0m0.355s user 0m0.110s sys 0m0.234s $ ls -l 1 2 -rw-r--r-- 1 ttrantal users 7682 Oct 4 11:50 1 -rw-r--r-- 1 ttrantal users 7682 Oct 4 11:50 2 $ md5sum 1 2 254e5156e7f72201399447f8bca6f85b 1 254e5156e7f72201399447f8bca6f85b 2 Search for multiple targets: =========================== $ time pacman -Ss gnome kde xorg qt mozilla >1 real 0m25.242s user 0m5.370s sys 0m18.549s $ time ./pacman -Ss gnome kde xorg qt mozilla >2 real 0m0.916s user 0m0.302s sys 0m0.588s $ ls -l 1 2 -rw-r--r-- 1 ttrantal users 20062 Oct 4 11:57 1 -rw-r--r-- 1 ttrantal users 20062 Oct 4 11:57 2 $ md5sum 1 2 e97040100c1dde291ea0a0ba634ceac5 1 e97040100c1dde291ea0a0ba634ceac5 2 |
This task depends upon
Closed by Judd Vinet (judd)
Sunday, 19 December 2004, 01:01 GMT
Reason for closing: Implemented
Additional comments about closing: Thanks, Tommi. Added for 2.9.3
Sunday, 19 December 2004, 01:01 GMT
Reason for closing: Implemented
Additional comments about closing: Thanks, Tommi. Added for 2.9.3
Comment by Judd Vinet (judd) - Tuesday,
14 December 2004, 07:45 GMT
If you still have the patch, would you mind reposting it?
Apparently Flyspray has lost the current attachment.
search.patch