Skip to contentSkip to conversation

parsing_c: Optimize recursive header file parsing

RFC PATCH Markus Elfring 1 participant 1 message Sep 9, 2020

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines

This patch series aims to optimize performance for recursively parsing header files in Coccinelle.

I am curious how you got encouraged to pick such a software development challenge up.

Quoted 1 line

it would take close to 7 hours to complete.

This is unfortunate.

How do you think about to offer any more information (besides the mentioned processor) for further benchmarking purposes?
https://github.com/coccinelle/coccinelle/issues/133

Quoted 1 line

The optimization that this patch series implements reduces that time to 1 hour.

Such a scale of improvement is impressive.

Quoted 2 lines

- Skipping unparsable locations in header files: Skipping top-level items in a header file that cannot be parsed. …

Will any further software evolution happen according to a topic like “Exclusion of unsupported source code parts”?
https://github.com/coccinelle/coccinelle/issues/20

Quoted 2 lines

- Recursively parse all header files only once and build a large type environment. Use the dependency graph to determine reachability. …

Are you looking for the support of header file “precompilation”?

Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci