Hi Jakub,
Jakub Wilk wrote:
> which-pkg-broke is awfully slow, especially for packages with
> exuberant dependency chains:
Yeah, that's well-known.
> This is because w-p-b spawns "apt-cache depends" for every
> dependency. The attached patch makes it call "apt-cache depends" for
> multiple packages at once. This is slightly faster:
>
> $ time which-pkg-broke mpv >/dev/null
> real 0m8.526s
> user 0m8.222s
> sys 0m0.290s
Thanks a lot! .oO( Yeah, "slightly". )
> One side effect of this new implementation that the output order of
> packages that have the time timestamp is no longer deterministic. I
> don't think this is a big deal, [...]
Me neither. That speedup is awesome! Thanks again! :-)
Will be part of the next upload.
Regards, Axel
--
,''`. | Axel Beckert <[email protected]>, https://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
`- | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE