From b60e7aa98b9d11ea441f6bc8c3e9c12a4a3c7966 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 30 Jan 2025 18:46:35 -0600 Subject: marks patchsets as defective and remembers that --- doGui.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'doGui.go') diff --git a/doGui.go b/doGui.go index bc0fbdd..955d664 100644 --- a/doGui.go +++ b/doGui.go @@ -6,9 +6,11 @@ import ( "os" "os/user" "path/filepath" + "time" "go.wit.com/gui" "go.wit.com/lib/gadgets" + "go.wit.com/lib/gui/shell" "go.wit.com/log" ) @@ -38,11 +40,19 @@ func doGui() { mainWindow.Show() mainWindow.Custom = func() { log.Warn("MAIN WINDOW CLOSE") + now := time.Now() count := me.forge.RillReload() log.Info("Repo Reload count =", count) if count != 0 { me.forge.ConfigSave() } + // this is just interesting to see how fast it is on various boxes + // and with how many repos you are working with. On my current laptop + // I have 320 repos and when I'm using it and most things are in memory + // cache, it takes around + // 13G 424266 total files + + log.Printf("rill repos.Reload() took (%s)\n", shell.FormatDuration(time.Since(now))) os.Exit(0) } -- cgit v1.2.3