bugmake - Bugs: bug #51454, Poor performance for Intermediate...

 
 

bug #51454: Poor performance for Intermediate targets.

Submitter:  Paul Draper <pauldraper>
Submitted:  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
Component Version:  None Operating System:  Any
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 13 Jul 2017 04:05:54 AM UTC, original submission:  

```
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.

Paul Draper <pauldraper>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #41197:  makefile added by pauldraper (155B - application/octet-stream - makefile)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pauldraper (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-07-13 pauldraper Attached File- Added makefile, #41197

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code