Mailinglist Archive: zypp-devel (230 mails)

< Previous Next >
[zypp-devel] Re: missing stuff
  • From: Michael Andres <ma@xxxxxxx>
  • Date: Wed, 6 Feb 2008 12:30:12 +0100
  • Message-id: <20080206113012.GA27829@xxxxxxx>
On Wed, Feb 06, Duncan Mac-Vicar P. wrote:

- zypper iterates the pool to show a summary of installation, also to
mark a candidate for install. This is really slow with the current
(non-optimized) pool adaptor. Is there another way we can speed up this?

Do you think it's slow?

12:21:22 START MEASURE(iterate pool)
12:21:22 20989
12:21:22 MEASURE(iterate pool) 0 (u 0.01 s 0.00 c 0.00)

12:21:22 START MEASURE(iterate pool count status installed)
12:21:22 1644 19345
12:21:22 MEASURE(iterate pool count status installed) 0 (u 0.00 s 0.00 c 0.00)



But I admitt, I forgot to flag the pool clean after building it. That
each call to pool.end() did one itertaion to check the items.

So zypper 'for ( iterator it=pool.begin(); it!=pool.end(); ++it)'
did 20991 iterations and visited 440580099 PoolItems.

--

cu,
Michael Andres

+------------------------------------------------------------------+
Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4
+------------------------------------------------------------------+
Michael Andres YaST Development ma@xxxxxxxxxx
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0
+------------------------------------------------------------------+

--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >
References