Skip to content

Increase incremental parsing performance of cppmetrics #670

Open

Description

@mcserep

Currently the CppAstNodeMetrics table is cleaned up during incremental parsing by iterating through all stored entities, querying the related CppAstNode, 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 related CppAstNodeMetrics entities in the same loop. (Probably a new ODB view is required to connect the CppAstNodeMetrics table to the files.)

Activity

  1. added
    Plugin: C++
    Plugin: Metrics
    on Nov 8, 2023
  2. added this to the Upcoming Release milestone on Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Kind: Refactor 🔃Level: Moderate (2)Plugin: C++Plugin: Metrics

    Type

    No type

    Projects

    • Status
      To do
    • Status
      To do

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions