On 01/14/2010 05:10 PM, Julia Lawall wrote:
I think that fixme_traditional is slower than fixme_regexp because when
the | is exposed to Coccinelle, it makes an effort to do the matching from
left to right.  Here there is no ambiguity, but it is not clever enough to
figure that out in general.

I have the impression that<... ...>  is faster than<+... ...+>.  Bot are
Yes it is: 9:45 compared to 12:00 or a 19% speed improvement.

slow because they consider all control flow paths through the function.
But still two orders of magnitude slower than the version without the <... ...>

This in turn leads to many permutations of bindings of the position
variables.  Because some of the relevant code is under ifs, not all paths
contain the same set of positions.
Is that fixable? Or something to keep in the back of the mind to use <... ...> only scarcely when absolutely necessary?

Thanks for the examples,
You're welcome.

bye
        michael
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to