Skip to content

Issue #20: fix loading time in big repositories#21

Open
d9r-dev wants to merge 1 commit into
mcollina:mainfrom
d9r-dev:issue-20_loading_big_repos
Open

Issue #20: fix loading time in big repositories#21
d9r-dev wants to merge 1 commit into
mcollina:mainfrom
d9r-dev:issue-20_loading_big_repos

Conversation

@d9r-dev
Copy link
Copy Markdown

@d9r-dev d9r-dev commented Mar 20, 2026

Fix serve startup timeout on large repositories

Defer file watcher initialization to run in the background instead of blocking Fastify plugin registration. On large repos, the recursive .gitignore scan in loadGitignore can exceed the default 10s plugin timeout, causing AVV_ERR_PLUGIN_EXEC_TIMEOUT.

Also optimize findGitignoreFiles to use readdir({ withFileTypes: true }),
eliminating a separate stat() syscall per directory entry.

Fix serve startup timeout on large repositories

Defer file watcher initialization to run in the background instead of
blocking Fastify plugin registration. On large repos, the recursive
.gitignore scan in loadGitignore can exceed the default 10s plugin
timeout, causing AVV_ERR_PLUGIN_EXEC_TIMEOUT.

Also optimize findGitignoreFiles to use readdir({ withFileTypes: true
}),
eliminating a separate stat() syscall per directory entry.
@d9r-dev
Copy link
Copy Markdown
Author

d9r-dev commented Mar 20, 2026

This should fix #20

@dieend
Copy link
Copy Markdown

dieend commented Apr 10, 2026

I tested and this worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants