Local graph negatively affects performance when working with note

I haven’t found topic with that problem and I’ve tested the issue without community plugins.

When Local graph is opened despite it showing or not I can feel that typing in note is a bit of laggy.

Steps to reproduce

  1. Open Command Palette
  2. Pick Local graph
  3. Bring opened graph tab to the sidebar
  4. Type fast in any note

Expected result

Local graph should not noticeably affect performance

Actual result

Graph causes lag spikes that make Obsidian feel laggy

Environment

  • Operating system: Windows 10
  • Debug info:
    SYSTEM INFO:
    Obsidian version: v1.1.9
    Installer version: v1.1.9
    Operating system: Windows 10 Home 10.0.22000
    Login status: not logged in
    Insider build toggle: off
    Live preview: on
    Legacy editor: off
    Base theme: light
    Community theme: Blue Topaz v20230104
    Snippets enabled: 1
    Restricted mode: on

Additional information

I’ve made a profiling to measure how the local graph affects the performance

Without the graph every task is taking up to 90ms and it feels mostly ok.

With the graph on the other hand the tasks are taking up to 220ms (I think sometimes it’s even worse when using Obsidian)

Chrome profiles itself -
Profile-without-graph.zip (2.9 MB)
Profile-with-graph.zip (3.8 MB)

Seems like that graph calls getTags function for many times that’s basically just parses tags in my whole vault again and again.

Does it happen in the sandbox vault?