Subject: Re: some recent make(1) change makes it horribly slow
To: None <M.Drochner@fz-juelich.de>
From: Tobias Nygren <tnn@NetBSD.org>
List: current-users
Date: 10/12/2007 21:52:36
On Fri, 12 Oct 2007 17:12:58 +0200
Matthias Drochner <M.Drochner@fz-juelich.de> wrote:

> 
> Hi -
> I just updated my system to -current, and now make(1) spent
> more than 20 minutes after an invokation (in pkgsrc) eating
> up CPU time before doing any visible work.
> I've reverted my src/usr.bin/make/* to 2007/10/01 22:14:11,
> and now it takes "just" two minutes for the same.
> Whoever did this, please fix.
> 
> best regards
> Matthias

Here's profiling information from today's make(1) versus 20070901
when running "make show-var VARNAME=PKGNAME" in x11/gtk2:

older make:

  %   cumulative   self              self     total
 time   seconds   seconds    calls  ms/call  ms/call  name
 19.40      0.13     0.13   302504     0.00     0.00  sstep
  7.46      0.18     0.05    44235     0.00     0.00  ParseGetLine
  7.46      0.23     0.05     1244     0.04     0.04  __stat30
  7.46      0.28     0.05      614     0.08     0.08  open


current:

  %   cumulative   self              self     total
 time   seconds   seconds    calls   s/call   s/call  name
 45.50      1.67     1.67     6209     0.00     0.00  strstr
 16.35      2.27     0.60                             L2
 12.53      2.73     0.46 39799019     0.00     0.00  strncmp
  7.63      3.01     0.28                             L3
  3.00      3.12     0.11   302504     0.00     0.00  sstep