On Wed, 29 Dec 2010, Jonathan Nieder wrote:
> Package: dpkg-dev
> Version: 1.15.9
> Severity: wishlist
> 
> Thorsten Glaser wrote:
> 
> > dpkg-architecture appears to be called rather often.
> > It’s slow though…
> > 
> > r...@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.
> > 
> > r...@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?

perl -d:Profile /usr/bin/dpkg-architecture
less prof.out

See man Devel::Profile and man Devel::DProf (for an alternative profiling
tool).

But I fear this bug is useless as such. The output of the profiler for
dpkg-architecture does not show anything wrong here and it's far from
taking so long... and for dpkg-parsechangelog, I already tried to optimize
it somewhat and I'm unlikely to try harder myself. So unless you come up
with concrete optimizations, a bug report saying "it's slow" is useless.

Thorsten, can you generate the profiling data on your machine so that we
have a better idea of how it runs for you?

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Follow my Debian News ▶ http://RaphaelHertzog.com (English)
                      ▶ http://RaphaelHertzog.fr (Français)



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to