Skip to content

Pre-Filter Nodes in Graph Initialization #3

@hittjwX

Description

@hittjwX

Pre-Filter Nodes in Graph Initialization (Medium Value, Low Risk)

File/Line: MyGraph.ts:45-90

Description: In initGraph(), collect all candidate nodes first (filtering exclusions), then iterate once to add nodes and edges. Avoid repeated getCache() calls by batching metadata fetches.

Why: For vaults with many files, the nested loops perform redundant checks and cache lookups. This reduces initialization time (indexing speed) without changing behavior. Low risk; structural optimization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions