[pacman-dev] Unnecessary syscalls
Hello, it's my first message on this list. I'd like to make a few contributions to improve Pacman's performance. Pacman is a great package manager which I'm now using for a few years without any problems. It also has a very clear and well-structured code but its disk stress concerns me a bit. Looking at strace, a few syscalls appear superfluous to me. Deleting them made pacman -Syu (right after a disk flush) about 10s faster (70% less syscalls). Here's the patch: http://pastebin.archlinux.fr/406557 I've already talked about it on the forum but they advised me to discuss it here instead. There are also some suggestions for further optimizations: http://bbs.archlinux.org/viewtopic.php?id=101702 What do you think? --Tim
On 07/26/2010 04:55 PM, Tim Nieradzik wrote:
Hello,
it's my first message on this list. I'd like to make a few contributions to improve Pacman's performance. Pacman is a great package manager which I'm now using for a few years without any problems. It also has a very clear and well-structured code but its disk stress concerns me a bit.
Looking at strace, a few syscalls appear superfluous to me. Deleting them made pacman -Syu (right after a disk flush) about 10s faster (70% less syscalls). Here's the patch:
better send your patch inline to be reviewed http://wiki.archlinux.org/index.php/Super_Quick_Git_Guide#Sending_patches -- Ionuț
participants (2)
-
Ionuț Bîru
-
Tim Nieradzik