Thread (38 messages) 38 messages, 8 authors, 2017-03-30

Re: [PATCH] mk: parallelize make config

From: Michał Mirosław <hidden>
Date: 2017-01-23 19:03:40

2017-01-22 2:50 GMT+01:00 Ferruh Yigit [off-list ref]:
make config dependency resolving was always running serial,
parallelize it for better performance.

$ time make T=x86_64-native-linuxapp-gcc config
real    0m12.633s

$ time make -j8 T=x86_64-native-linuxapp-gcc config
real    0m1.826s
[...]
+$(RTE_OUTPUT)/.depdirs: $(DEPDIRS)
+       @rm -f $@
+       @for f in $(DEPDIRS); do cat $$f >> $@; done
+       @sort -u -o $@ $@
This could be just one 'sort -u -o $@ $(DEPDIRS)'

Best Regards,
Michał Mirosław
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help