On Thu, Oct 02, 2008 at 12:15:30PM -0700, Brock Pytlik wrote: > I don't think image.inventory commits to returning its list in a > particular order. Since sorting the list seems to take about .02 seconds, > I'm inclined to not depend on that feature of inventory, unless I hear > that its ordering is going to remain stable.
There's an XXX comment in __inventory() that asks whether the sort should be done there, or by the caller. Currently it's done in __inventory(), but I don't really see any reason for it to be, so I wouldn't count on it, particularly if you don't find it makes any appreciable performance difference. (Hopefully sorting an already-sorted list is quick.) Danek _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
