[bug #51454] Poor performance for Intermediate targets.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[bug #51454] Poor performance for Intermediate targets.

Robert Morell
URL:
  <http://savannah.gnu.org/bugs/?51454>

                 Summary: Poor performance for Intermediate targets.
                 Project: make
            Submitted by: pauldraper
            Submitted on: Thu 13 Jul 2017 04:05:54 AM UTC
                Severity: 3 - Normal
              Item Group: Enhancement
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: None
        Operating System: Any
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

```
LIST := $(shell seq 200)

.PHONY: all
all: $(LIST:=.q)

%.q: $(LIST:=.r)
        touch $@

%.r: $(LIST:=.s)
        touch $@

%.s: $(LIST:=.t)
        touch $@

%.t:
        touch $@
```

The first `make` invocation takes <1s. Subsequent invocations take 18s on the
same machine. All of it is spent in make process, not sys calls. This is due
to recursion in the intermediate branch of the `check_dep` function.

I first noticed this when using no-prereq .SECONDARY in a large makefile,
which made everything intermediate.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51454>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-make mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-make
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[bug #51454] Poor performance for Intermediate targets.

Robert Morell
Additional Item Attachment, bug #51454 (project make):

File name: makefile                       Size:0 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51454>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-make mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-make
Loading...