Increase incremental parsing performance of cppmetrics #670
Labels
Kind: Refactor 🔃
Level: Moderate (2)
Plugin: C++
Issues related to the parsing and presentation of C++ projects.
Plugin: Metrics
Issues related to the code metrics plugin.
Milestone
Currently the
CppAstNodeMetrics
table is cleaned up during incremental parsing by iterating through all stored entities, querying the relatedCppAstNode
, then the appropriate file. After that,CppAstNodeMetrics
entities related to a deleted or modified file are erased.I propose a likely more memory and time efficient approach: since the
CppFileMetrics
table is also maintained through the same logic (looking for entities related to a modified or deleted file), we could erase the relatedCppAstNodeMetrics
entities in the same loop. (Probably a new ODB view is required to connect theCppAstNodeMetrics
table to the files.)The text was updated successfully, but these errors were encountered: