Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Reuse one GitService per project instead of building one per IPC call

Aperta
#199 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
51/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
electron, git, typescript

Direzione di ricerca

Start with src/main/index.ts:117-121 and trace how git() creates GitService and how status refreshes are triggered. Then inspect GitService and its filter-list loading; the proposal is to reuse a service per project path and refresh filters when .git/config changes or periodically. Done means repeated IPC calls reuse the service without leaving filter data stale.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement performance priority: low severity: low

Suggestion from the 2026-10-07 code review (not a bug).

git() in src/main/index.ts:117-121 creates a new GitService for every IPC call. Each one runs an extra git config to list the repository's filter drivers, and a single status() spawns 4–6 git processes. The status refreshes on project open, after every agent run and on panel actions.

Proposal

Cache the service per project path and refresh the filter list when .git/config changes (mtime check), or at most every few seconds.

Lingua principale
TypeScript
Stelle
2
Fork
2
Merge medio
5h 52m
PR unite (30g)
18

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PierrunoYT/patch

Tutte le issue di PierrunoYT/patch

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.