On Mon, Feb 04, 2013 at 09:49:04AM -0800, Shawn Walker wrote: > On 02/01/13 11:25, Edward Pilatowicz wrote: > >hey all, > > > >i have a small bugfix (9 lines of actual code) that speeds up noop pkg > >operations: > > > > https://cr.opensolaris.org/action/browse/pkg/edp/pkg.lisyncfast/webrev/ > > 16269426 noop pkg operations are slow > > > >i benchmarked the fix on my desktop with the following command: > > > > ptime pkg install --no-refresh -n osnet-incorporation > > > >without the fix execution time was 1 min and 24 sec, with the fix > >execution time was 12 seconds. > > > >more details about the analysis/fix are in the bug report. > > I was going to point out that self.pd._mediators_change isn't > technically finalised until __finalize_mediation() is called, but > you seem to have addressed that in the comment. >
yeah. _mediators_change is initialized to false, and then set to true if we do an explicit mediator change operation (via plan_set_mediators().) that's the case i'm looking for here. (the fact that it's manipulated later in __finalize_mediation() shouldn't affect the logic here.) > imageplan.py: > line 2212: s/there // ? ('then there' seems wrong) > oops. fixed. thanks. ed _______________________________________________ pkg-discuss mailing list pkg-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/pkg-discuss