Replace encoding/json with goccy/go-json for cpu and memory usage improvement
This new package has significant better resource usage, and we do a _lot_ of JSON parsing in this application, so any amount of improvement becomes significant
This commit is contained in:
@@ -50,7 +50,3 @@ func (ru *ResourceUsage) Reset() {
|
||||
ru.Network.TxBytes = 0
|
||||
ru.Network.RxBytes = 0
|
||||
}
|
||||
|
||||
func (s *Server) emitProcUsage() {
|
||||
s.Events().Publish(StatsEvent, s.Proc())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user