gitrob icon indicating copy to clipboard operation
gitrob copied to clipboard

Feature Request - Go routines for serving and analysis

Open josephmilla opened this issue 7 years ago • 1 comments

Right now, there's only one process that does the analysis and serving of files sequentially. It would be great to have two separate go routines that:

  1. Does periodic analysis given a specified time interval (every 1 minute, 5 minutes, etc.)
  2. Serves up the analysis result and the corresponding UI

If this is implemented, it might be good to have +3 on GOMAXPROCS in gitrob/core/session.go.

func (s *Session) InitThreads() {
  if *s.Options.Threads == 0 {
    numCPUs := runtime.NumCPU()
    s.Options.Threads = &numCPUs
  }
  runtime.GOMAXPROCS(*s.Options.Threads + 3) // thread count + main + web server + analysis
}

josephmilla avatar Jul 05 '18 18:07 josephmilla

@josephmilla This has been moved to the new fork

mattyjones avatar May 23 '20 03:05 mattyjones