From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755550AbbDOJiu (ORCPT ); Wed, 15 Apr 2015 05:38:50 -0400 Received: from cantor2.suse.de ([195.135.220.15]:34851 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754594AbbDOJim (ORCPT ); Wed, 15 Apr 2015 05:38:42 -0400 Message-ID: <552E31A0.3090503@suse.cz> Date: Wed, 15 Apr 2015 11:38:40 +0200 From: Michal Marek User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Alexey Dobriyan CC: akpm@linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] tags: much faster, parallel "make tags" References: <20150414172047.GA5641@p183.telecom.by> In-Reply-To: <20150414172047.GA5641@p183.telecom.by> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2015-04-14 19:20, Alexey Dobriyan wrote: > ctags is single-threaded program. Split list of files to be tagged into > equal parts, 1 part for each CPU and then merge the results. > > Speedup on one 2-way box I have is ~143 s => ~99 s (-31%). > On another 4-way box: ~120 s => ~65 s (-46%!). I want this! :-) > + # seems like Useless Use of cat(1) but not really > + NR_LINES=$(cat .make-tags.src | wc -l) wc -l <.make-tags.src Michal