rojo/benches
Joe 0e318b6b33 perf: optimize git-metadata endpoint with diff-index + caching
Replace `git status --porcelain -uall` with `git diff-index` (6x faster
for tracked changes) and `git ls-files --others` for untracked files.
Add mtime-based caching keyed on .git/index mtime, HEAD SHA, and tree
mutation cursor to make repeated calls near-instant (~14ms vs ~1000ms).

Empty changesets are never cached to ensure external file edits are
always detected on the next query. Falls back to git status for repos
with no commits (empty repo edge case).
2026-03-12 22:32:23 -05:00
..
build.rs Add plugin build flag (#735) 2023-07-17 19:15:40 -07:00
git_metadata.rs perf: optimize git-metadata endpoint with diff-index + caching 2026-03-12 22:32:23 -05:00