Skip to content

Commit 1366296

Browse files
Memoize git refs
1 parent b580349 commit 1366296

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/extension/metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"ui": {
1010
"dashboard-tab": {
11-
"title": "Labs AI Tools",
11+
"title": "MCP Catalog",
1212
"src": "index.html",
1313
"root": "ui"
1414
}
@@ -34,4 +34,4 @@
3434
}
3535
]
3636
}
37-
}
37+
}

src/markdown.clj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,9 @@
266266
(into []))
267267
:metadata metadata}))
268268

269+
(def memoized-parse-prompts
270+
(memoize parse-prompts))
271+
269272
;; ---------- future ---------
270273

271274
(defn parse-new [content query]

src/prompts.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,11 @@
174174
(cond
175175
;; prompt content is already in opts
176176
prompt-content
177-
(markdown-parser/parse-prompts prompt-content)
177+
(markdown-parser/memoized-parse-prompts prompt-content)
178178

179179
;; file based prompts
180180
:else
181-
(markdown-parser/parse-prompts (slurp prompts)))
181+
(markdown-parser/memoized-parse-prompts (slurp prompts)))
182182

183183
m (merge
184184
(run-extractors (:extractors metadata) opts)

0 commit comments

Comments
 (0)