From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from s3.sipsolutions.net ([144.76.43.62]:38002 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727161AbeIROyS (ORCPT ); Tue, 18 Sep 2018 10:54:18 -0400 Message-ID: <1537262543.2957.19.camel@sipsolutions.net> (sfid-20180918_112237_330725_2D892F33) Subject: Re: 0079-netdev-destructor.cocci very slow From: Johannes Berg To: Hauke Mehrtens , "backports@vger.kernel.org" Cc: cocci@systeme.lip6.fr Date: Tue, 18 Sep 2018 11:22:23 +0200 In-Reply-To: (sfid-20180917_235548_596100_F1A753F4) References: (sfid-20180917_235548_596100_F1A753F4) Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: backports-owner@vger.kernel.org List-ID: On Mon, 2018-09-17 at 23:55 +0200, Hauke Mehrtens wrote: > The 0079-netdev-destructor.cocci spatch in backports is very slow for > me. For bigger files I get a warning that it takes over to 15 seconds to > apply it to just one file, for the complete backports tree it takes over > an hour to apply. > > This is the patch: > https://git.kernel.org/pub/scm/linux/kernel/git/backports/backports.git/tree/patches/0079-netdev-destructor.cocci > > When I remove the <-- --> in the first rule, it is applied in some > seconds on the complete tree, so an speed improvement of about 100 > times, but it is not working correctly any more. ;-) > > Is this normal or how can I improve the spatch to be faster? I am using > coccinelle 1.0.7 build with default configure arguments against the > libraries from Debian stable. We've had this discussion before :-) I think we determined that it was normal. > If this is normal I should probably try to reduce the number of files it > tries to apply this against in gentree.py before spatch gets started. spatch should already try that internally, but perhaps with some extra knowledge we can do a better job ... johannes -- To unsubscribe from this list: send the line "unsubscribe backports" in