diff options
Diffstat (limited to 'doGui.go')
| -rw-r--r-- | doGui.go | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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) } |
