[Yum-devel] [PATCH 3/4] pkglist: use streaming-friendly pkg split

Zdenek Pavlas zpavlas at redhat.com
Wed Nov 28 09:46:28 UTC 2012


>> split_list_into_equal_chunks()
>  We can't remove this API. But we can change it to:

Sure, can keep it there.  Are there any users?  Thought that
two lines of code with one user are not worth it..

> ...what is the intention of changing the order?

Using the original split e.g. [[1, 2, 3], [4, 5, 6]] we'd
have to process the whole output of 1st worker before moving
to the 2nd worker- which would be blocked all the time.
With [[1, 3, 5], [2, 4, 6]] workers mostly run in parallel.


More information about the Yum-devel mailing list