continue-custom/core
Rob Leidle 0fa0c3bcbd
Simplify walkDir(...) and improve performance by roughly 10x in larger repos (#1806)
The performance of WalkDir is improved by replacing the recursive DFS
with a stack based implementation (less memory in-use during peak
exploration). In addition, some unnecessary flags and options were
removed which allowed the code to be overall simplified. Much less rule
matching is occuring with the same files returned.

Some performance results on my linux host:

small repo:
- 649 files returned by walkDir()
- 9 .gitignore files
- walkDir() old vs new duration: 918 ms to 143 ms

medium sized repo:
- 9271 returned by walkDir()
- 35 .gitignore files
- walkDir() old vs new duration: 10,886 ms to 970ms

large sized repo:
- 197,900 files returned by walkDir()
- 929 .gitignore files
- walkDir() old vs new duration: 498,151 ms to 37,353 ms

Co-authored-by: Rob Leidle <rleidle@tesla.com>
2024-07-22 19:33:58 -07:00
..
.vscode 🚧 basic chat working with free trial 2023-12-07 00:06:19 -08:00
autocomplete add "language" template variable for autocomplete 2024-07-22 11:08:11 -07:00
commands dev (#1542) 2024-06-28 16:21:36 -07:00
config update workspaces on session info change 2024-07-19 16:37:01 -07:00
context feat: allow JetBrains users to index docs (#1797) 2024-07-22 13:22:31 -07:00
continueServer publish stubs (#1472) 2024-06-12 22:30:27 -07:00
control-plane feat: allow JetBrains users to index docs (#1797) 2024-07-22 13:22:31 -07:00
deploy publish stubs (#1472) 2024-06-12 22:30:27 -07:00
diff test: add myers diff tests (#1754) 2024-07-16 15:19:18 -07:00
indexing Simplify walkDir(...) and improve performance by roughly 10x in larger repos (#1806) 2024-07-22 19:33:58 -07:00
llm fix completions support in ContinueProxy 2024-07-19 14:43:44 -07:00
protocol logout of control plane 2024-07-17 12:50:26 -07:00
tag-qry 🚧 WIP on indexing for code context provider 2024-03-03 20:22:08 -05:00
test Simplify walkDir(...) and improve performance by roughly 10x in larger repos (#1806) 2024-07-22 19:33:58 -07:00
util Add Pause Codebase On Start setting (#1788) 2024-07-22 14:19:49 -07:00
vendor ⏩ Preview to main (#1299) 2024-05-16 22:15:44 -07:00
.eslintrc.json fix(core): remove eslint config and fix errors (#1457) 2024-06-09 19:14:41 -07:00
.gitignore Dev (#1679) 2024-07-05 23:47:22 -07:00
.npmignore 🔥 add tests to .npmignore 2024-03-19 12:54:17 -07:00
biome.json 🚢 Preview (#1355) 2024-05-24 22:39:22 -07:00
core.ts Set the indexProgress indicator to paused on startup if pauseCodebaseIndexOnStart is set (#1804) 2024-07-22 15:36:13 -07:00
index.d.ts Add Pause Codebase On Start setting (#1788) 2024-07-22 14:19:49 -07:00
jest.config.js Dev (#1678) 2024-07-05 23:20:28 -07:00
jest.global-setup.ts Dev (#1678) 2024-07-05 23:20:28 -07:00
package-lock.json IAnalyticsProvider 2024-07-19 15:47:30 -07:00
package.json IAnalyticsProvider 2024-07-19 15:47:30 -07:00
tsconfig.json Tests for indexing + follow all .gitignore syntax (#1661) 2024-07-03 23:41:43 -07:00
tsconfig.npm.json ⏩ Preview to main (#1299) 2024-05-16 22:15:44 -07:00