Currently we keep the TU's in memory for all files that are opened in an editor. This can lead to high memory consumption. We should instead implement a manual LRU cache of N translation units. Reproducible: Always
Is that really a release blocker? This bug report needs quite some love otherwise.
OK, lets remove the tag. I do think it should be implemented though. Currently, we put the clang data into the IAstPtr. That one only gets cleared once the file is not opened in the editor anymore. That means, if you have a hundred files open in KDevelop, you'll keep a hundred clang TUs in memory, which has a significant impact. Instead, we should not store the data in the IAstPtr but instead have our own kdev-clang specific thread-safe LRU that caches the last N clang TUs.