From df3b14879077d2b51c36b34dcbe9f9733939e0b8 Mon Sep 17 00:00:00 2001 From: Ross Keenan Date: Wed, 29 Dec 2021 08:12:38 +0200 Subject: [PATCH] refactor: :fire: Remove timers --- src/main.ts | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/main.ts b/src/main.ts index a073a898..6125f815 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1261,27 +1261,21 @@ export default class BCPlugin extends Plugin { db.end2G(); // !SECTION Hierarchy Notes - console.time("Folder-Notes"); this.addFolderNotesToGraph(eligableAlts[BC_FOLDER_NOTE], frontms, mainG); - console.timeEnd("Folder-Notes"); - console.time("Tag-Notes"); this.addTagNotesToGraph(eligableAlts[BC_TAG_NOTE], frontms, mainG); - console.timeEnd("Tag-Notes"); - console.time("Link-Notes"); this.addLinkNotesToGraph(eligableAlts[BC_LINK_NOTE], frontms, mainG); - console.timeEnd("Link-Notes"); + db.start1G("Traverse-Notes"); - console.time("Traverse-Notes"); + this.addTraverseNotesToGraph( eligableAlts[BC_TRAVERSE_NOTE], frontms, mainG, this.buildObsGraph() ); - console.timeEnd("Traverse-Notes"); - console.time("Dendron-Notes"); + this.addDendronNotesToGraph(frontms, mainG); - console.timeEnd("Dendron-Notes"); + db.end1G(); files.forEach((file) => {