gitrob
gitrob copied to clipboard
Feature Request - Go routines for serving and analysis
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:
- Does periodic analysis given a specified time interval (every 1 minute, 5 minutes, etc.)
- 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 This has been moved to the new fork