Re: Abstraction over Debian Packages in Kapture (was: [devel] Another idea)
Marcin Pawlik <[email protected]> Mon, 12 Jan 2004 02:51:16 +0100
| Newsgroups | gmane.comp.kde.devel.debian |
|---|---|
| Message-ID | <20040112015116.GA20095@mpmain> |
Looks like I don't even need someone to discuss with - I'm starting to
be good at writing answers for my own mails ;)
On Mon, Jan 12 at 01:27, Marcin Pawlik wrote:
> On Sun, Jan 11 at 22:46, Dominique Devriese wrote:
>> Marcin Pawlik writes:
[...]
>>> Are you reading the data from /var/lib/dpkg/info?
>>
>> No, you misunderstood me. I was talking about pkgRecords. IIUC, it
>> gets its information not from the cache, but from the package files
>> in /var/lib/apt/lists/.
>
> I'd have to check it.
And I checked - those files are used for not installed packages. The
speed of apt-cache search which *is* parsing the descriptions[1] is not
so surprising since it's still slower than grep. But as this regexp
search takes less than one second on my computer, the code for
description retrieval you was talking about could be even faster...
[1] This is finally something I'm sure it's true. It's in the source
code and even in manual page.
Regards,
--
Marcin Pawlik