Mailinglist Archive: zypp-devel (42 mails)
| < Previous | Next > |
Re: [zypp-devel] reading file lists from metadata
- From: Jan Kupec <jkupec@xxxxxxx>
- Date: Fri, 27 Apr 2007 14:19:41 +0200
- Message-id: <4631EA5D.5010209@xxxxxxx>
Duncan Mac-Vicar Prett wrote:
> On Friday 27 April 2007 13:41:46 Jiri Srain wrote:
>> Find each package in the database, modify it. I thought that was what Jano
>> wanted to avoid.
I meant to avoid the memory consumption that would be necessary
otherwise. filelists.xml.gz for factory has 13 megs currently. If done
like read package into mem, insert into db, delete from mem, memory
consumption is zero...
> When you insert a package, you get the id.
> You can get a map with the ids.
... if done this way, the memory overhead would be only this map with
the ids. Still much better than before.
> Those optmizations could also be introduced in the cache store.
I would go for this, if it would mean good memory vs. speed-up trade-off.
jano
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
> On Friday 27 April 2007 13:41:46 Jiri Srain wrote:
>> Find each package in the database, modify it. I thought that was what Jano
>> wanted to avoid.
I meant to avoid the memory consumption that would be necessary
otherwise. filelists.xml.gz for factory has 13 megs currently. If done
like read package into mem, insert into db, delete from mem, memory
consumption is zero...
> When you insert a package, you get the id.
> You can get a map with the ids.
... if done this way, the memory overhead would be only this map with
the ids. Still much better than before.
> Those optmizations could also be introduced in the cache store.
I would go for this, if it would mean good memory vs. speed-up trade-off.
jano
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |