Mailinglist Archive: zypp-devel (75 mails)
| < Previous | Next > |
[zypp-devel] Re: [zypp-commit] r10182 - in /trunk/libzypp: package/libzypp.changes zypp/Package.cc
- From: Duncan Mac-Vicar Prett <dmacvicar@xxxxxxx>
- Date: Fri, 23 May 2008 10:49:23 +0200
- Message-id: <48368513.2090605@xxxxxxx>
Michael Matz wrote:
This implementation only makes a rpm query to get the changelog on-demand, and only for installed packages. I haven't tested memory usage, but I don't see why it should go up. It is like forking rpm -q --changelog package, but doing it using the rpm db directly.
Duncan
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
Hi Duncan,That was because we parsed the changelogs for yum repositories, and had it in the database (or in memory pre-10.3).
On Thu, 22 May 2008, dmacvicar@xxxxxxxxxxxxxxxx wrote:
Author: dmacvicar
Date: Thu May 22 03:36:04 2008
New Revision: 10182
URL: http://svn.opensuse.org/viewcvs/zypp?rev=10182&view=rev
Log:
fix changelog retrieval for installed packages
Have you checked that memory use doesn't go through the roof again? The changelogs of installed packages was the single largest chunk of memory in old libzypp (10.3 era). Simply because it loaded all changelogs into memory during target initialization (i.e. not on demand).
Ciao,
Michael.
This implementation only makes a rpm query to get the changelog on-demand, and only for installed packages. I haven't tested memory usage, but I don't see why it should go up. It is like forking rpm -q --changelog package, but doing it using the rpm db directly.
Duncan
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |