backports.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 0079-netdev-destructor.cocci very slow
@ 2018-09-17 21:55 Hauke Mehrtens
  2018-09-18  9:22 ` Johannes Berg
  0 siblings, 1 reply; 6+ messages in thread
From: Hauke Mehrtens @ 2018-09-17 21:55 UTC (permalink / raw)
  To: backports; +Cc: cocci


[-- Attachment #1.1: Type: text/plain, Size: 900 bytes --]

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.

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.

Hauke


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-09-19 14:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-17 21:55 0079-netdev-destructor.cocci very slow Hauke Mehrtens
2018-09-18  9:22 ` Johannes Berg
2018-09-18 21:52   ` Hauke Mehrtens
2018-09-19  8:43     ` Johannes Berg
2018-09-19  8:49       ` [Cocci] " Julia Lawall
2018-09-19  9:02         ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).