mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
Cache all top-level calls to filterByTypes (~7% runtime reduction).
This commit is contained in:
parent
85e704f32a
commit
dfcb4529f3
47 changed files with 427 additions and 481 deletions
|
|
@ -921,8 +921,8 @@ test("getReferenceLinkImageData().shortcuts", (t) => {
|
|||
"parser": "none",
|
||||
"function":
|
||||
() => {
|
||||
const { referenceLinkImageData } = require("../lib/cache");
|
||||
const { shortcuts } = referenceLinkImageData();
|
||||
const { getReferenceLinkImageData } = require("../lib/cache");
|
||||
const { shortcuts } = getReferenceLinkImageData();
|
||||
t.is(shortcuts.size, 0, [ ...shortcuts.keys() ].join(", "));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue