continue-custom/core/test
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
..
context/retrieval Dev (#1679) 2024-07-05 23:47:22 -07:00
indexing 🪄 model dropdown, control plane (#1692) 2024-07-08 22:05:21 -07:00
streamTransforms Dev (#1627) 2024-07-01 21:34:06 -07:00
testUtils Dev (#1678) 2024-07-05 23:20:28 -07:00
util Dev (#1678) 2024-07-05 23:20:28 -07:00
.gitignore Dev (#1678) 2024-07-05 23:20:28 -07:00
_testEnv.test.ts Dev (#1678) 2024-07-05 23:20:28 -07:00
baseLLM.test.ts Dev (#1678) 2024-07-05 23:20:28 -07:00
editme.py 🐛 test and fix streamDiff 2023-12-30 11:09:43 -05:00
llm.test.ts Tests for indexing + follow all .gitignore syntax (#1661) 2024-07-03 23:41:43 -07:00
streamDiff.test.ts Merge branch 'preview' into dev 2024-07-19 11:28:36 -07:00
walkDir.test.ts Simplify walkDir(...) and improve performance by roughly 10x in larger repos (#1806) 2024-07-22 19:33:58 -07:00