StatusCommand is very slow after checkout with jgit

Offen
#310 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
git, java

Rechercherichtung

Start by comparing the cited commit 038353ea91fc4643c8e94215bdafccb8e34ea755 with JGit 7.7.1, focusing on CheckoutCommand, StatusCommand, and DirCache.writeTo. Trace why checkout leaves index timestamps that trigger smudgeRacilyClean and content comparisons during status; done when checkout writes correct timestamps and status no longer incurs the reported slowdown.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Version

7.8.0

Operating System

Windows, Linux/Unix

Bug description

Hello,

sorry for my bad english.

I think, there is a regression with commit:

https://github.com/eclipse-jgit/jgit/commit/038353ea91fc4643c8e94215bdafccb8e34ea755

After checkout with jgit (CheckoutCommand), StatusCommand is very slow.

Actual behavior

With CheckoutCommand many entries in index are smudge because smudeSec is befoe entryMtimeSec:

Image

so smudgeRacilyClean is called in DirCache.writeTo

This leads in StatusCommand to compare the file content.

Expected behavior

With checkout the index should be clean and all files in the Index should have the correct timestamp.

Relevant log output

Other information

In 7.7.1 the problem is not present. The index is written correct.

Vorherrschende Sprache
Java
Sterne
427
Forks
116
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus eclipse-jgit/jgit

Alle Issues in eclipse-jgit/jgit

Ähnliche Issues

Weitere Issues zu Java

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.