Every time I execute pacman, it always feels much slower than on archlinux.
This is very strange, so I used strace -o xx.txt pacman -Syu to track the execution process of pacman.
You can see that there are a lot of path conversion operations. After grep filtering, you can see that executing pacman -Syu triggered 2,500 path conversion operations.
And as can be seen from the figure, the path transformations performed are often repeated.
Is it possible to increase program execution speed by caching the result of path conversion.
Or is it possible to determine the current execution environment before starting the program?
If in msys2 shell, use the posix path directly.
else use the windows execution path directly.
Every time I execute pacman, it always feels much slower than on archlinux. This is very strange, so I used
strace -o xx.txt pacman -Syu
to track the execution process of pacman.You can see that there are a lot of path conversion operations. After grep filtering, you can see that executing pacman -Syu triggered 2,500 path conversion operations. And as can be seen from the figure, the path transformations performed are often repeated. Is it possible to increase program execution speed by caching the result of path conversion.