Skip to content

Commit bbe3304

Browse files
committed
Add a comment to explain the file sorting logic for better cache efficiency
1 parent 7f1f21b commit bbe3304

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎packages/vscode/src/utils/files-collector.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export class FilesCollector {
5454
const now = Date.now()
5555
const ONE_HOUR = 60 * 60 * 1000
5656

57+
// Recently modified files are placed at the end for better cache efficiency
5758
context_files.sort((a, b) => {
5859
try {
5960
const mtime_a = fs.statSync(a).mtime.getTime()

0 commit comments

Comments
 (0)