From e212e1fc35ddae63f457f0f2a2e95154e008941f Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 8 Jan 2024 12:18:42 -0500 Subject: perf: skip expanding exclude globs (#21817) We were calling `expand_glob` on our excludes, which is very expensive and unnecessary because we can pattern match while traversing instead. 1. Doesn't expand "exclude" globs. Instead pattern matches while walking the directory. 2. Splits up the "include" into base paths and applicable file patterns. This causes less pattern matching to occur because we're only pattern matching on patterns that might match and not ones in completely unrelated directories. --- cli/tests/testdata/doc/invalid_url.out | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/tests/testdata/doc/invalid_url.out') diff --git a/cli/tests/testdata/doc/invalid_url.out b/cli/tests/testdata/doc/invalid_url.out index 8be787e90..038c53177 100644 --- a/cli/tests/testdata/doc/invalid_url.out +++ b/cli/tests/testdata/doc/invalid_url.out @@ -1,4 +1,4 @@ -error: invalid URL: invalid domain character +error: Invalid URL 'https://raw.githubusercontent.com%2Fdyedgreen%2Fdeno-sqlite%2Frework_api%2Fmod.ts' Caused by: invalid domain character -- cgit v1.2.3