[dpdk-dev] [PATCH] mk: parallelize make config
Ferruh Yigit
ferruh.yigit at intel.com
Mon Jan 30 10:41:15 CET 2017
On 1/23/2017 7:03 PM, Michał Mirosław wrote:
> 2017-01-22 2:50 GMT+01:00 Ferruh Yigit <ferruh.yigit at intel.com>:
>> 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)'
Yes, I will update in next version, thanks.
>
> Best Regards,
> Michał Mirosław
>
More information about the dev
mailing list