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@suse.de 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@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org