Your message dated Wed, 27 Apr 2011 04:46:40 +0200
with message-id <20110427024640.ga8...@gaara.hadrons.org>
and subject line Re: Bug#608247: dpkg-architecture is slow
has caused the Debian Bug report #608247,
regarding dpkg-architecture is slow
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
608247: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=608247
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: dpkg-dev
Version: 1.15.9
Severity: wishlist

Thorsten Glaser wrote:

> dpkg-architecture appears to be called rather often.
> It’s slow though…
> 
> root@ara0:~/T # time dpkg-architecture
> DEB_BUILD_ARCH=m68k
[...]
>     0m7.49s real     0m2.97s user     0m4.02s system
> 
> The system is otherwise idle, and it’s the second call, so hot cache.
> 
> root@ara0:~/T # cat /proc/cpuinfo
> CPU:            68040
[...]
> Debian unstable. Other tools might be similar.

dpkg-parsechangelog is also about 3 seconds too slow in my experience.

I am guessing (but have not checked) that most of the time is spent
loading Dpkg::* modules.  Any hints for diagnosing this?



--- End Message ---
--- Begin Message ---
Hi!

On Wed, 2010-12-29 at 17:08:14 +0000, Thorsten Glaser wrote:
> Raphael Hertzog dixit:
> > It seems really that perl is just slow on your setup.
> 
> Yes, I thought so.

Well, w/o specific profiling data I don't think we can do much, as
Raphaël already said. And the architecture being generally slow does
not make the situation any better.

> Maybe the calls to the various dpkg-* and dh* tools could use
> cache files to save having to evaluate the same thing over and
> over again, generally? (Yes, lots of work – just a random idea.)

debhelper already caches calls to dpkg-architecture, but only for each
dh* command invokation. But for dpkg-* commands in general that'd the
realm of the caller.

Anyway, given the above, I'm closing this bug report. But we'd be glad
to accept reasonable patches improving the speed in general or more
specific bug reports though.

thanks,
guillem


--- End Message ---

Reply via email to