From 270d67cff2bfd62ac11e423712995d9c5cd3d502 Mon Sep 17 00:00:00 2001 From: SkepticMystic Date: Fri, 3 May 2024 12:07:16 +0200 Subject: [PATCH] perf(command:freeze-crumbs): Only processFrontmatter if it was actually mutated --- src/commands/init.ts | 4 ++ src/components/side_views/TreeView.svelte | 2 +- src/utils/drop_crumb.ts | 74 +++++++++++++++-------- 3 files changed, 53 insertions(+), 27 deletions(-) diff --git a/src/commands/init.ts b/src/commands/init.ts index a05d63c5..e9ff64bd 100644 --- a/src/commands/init.ts +++ b/src/commands/init.ts @@ -121,6 +121,10 @@ export const init_all_commands = (plugin: BreadcrumbsPlugin) => { ), ); + log.debug( + `freeze-implied-edges-to-vault > took ${timer.elapsed_str()}ms`, + ); + notice.setMessage( `Implied edges frozen to all notes in ${timer.elapsed_str()}ms`, ); diff --git a/src/components/side_views/TreeView.svelte b/src/components/side_views/TreeView.svelte index f6159e4d..2b1e6f09 100644 --- a/src/components/side_views/TreeView.svelte +++ b/src/components/side_views/TreeView.svelte @@ -53,7 +53,7 @@ : []; -
+