On Tue, 23 Sep 2008 09:40:47 +0200 Torsten Werner wrote:
> On Tue, Sep 23, 2008 at 9:07 AM, Evgeni Golov <[EMAIL PROTECTED]> wrote:
> > lsb_release is quick here:
> > # time lsb_release -i -s
> > Debian
> > lsb_release -i -s 0.13s user 0.08s system 80% cpu 0.256 total
> >
> > and it does for sure not run apt-cache
>
> $ grep apt-cache /usr/bin/lsb_release
> # This should really be included in apt-cache policy output... it is already
> policy = commands.getoutput('apt-cache policy 2>/dev/null')
>
> It does run apt-cache on my system and it takes between 2 and 8 seconds.
Mh, okay, it runs apt-cache, you got me.
Anyways, why is apt-cache policy as root faster than as user? My first
test was as root, now I tested as a user and I got 2-3s delay :(
Regards
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]