Mailinglist Archive: zypp-devel (26 mails)

< Previous Next >
Re: [zypp-devel] List unnecessary dependencies
  • From: Michael Andres <ma@xxxxxxx>
  • Date: Thu, 9 Sep 2010 17:46:36 +0200
  • Message-id: <201009091746.36730.ma@xxxxxxx>
On Thursday 09 September 2010 17:06:18 Ricardo Cruz wrote:

Very nice, thanks. Please just add there a comment on the performance
of the function, otherwise people may unnecessarily abuse it. I assume it's
O(N): you iterate through the logs every time the function is called.

No, the history file is parsed once on demand, and the cache (hash<int>) is
invalidated after a commit. So it should not perform that bad.
--

cu,
Michael Andres

+------------------------------------------------------------------+
Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4
+------------------------------------------------------------------+
Michael Andres ZYPP Development ma@xxxxxxx
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 >
List Navigation
Follow Ups