Manu343726 / siplasplas

A library for C++ reflection and introspection
https://manu343726.github.io/siplasplas
MIT License
197 stars 27 forks source link

Reduce DRLParser memory usage #30

Open Manu343726 opened 8 years ago

Manu343726 commented 8 years ago

DRLParser keeps increasing its memory usage as its parses more files from the source tree. I think this could be libclang compilation database (Since we're using same index for all compiled translation units) plus all the processed translation units we generate. Since the parser works per header, not in a global way, maybe we should clean translation unit data after parsing and processing.

Manu343726 commented 8 years ago

I'm seriously considering porting DRLParser to C++ with libclang C++ API or even libtooling.