mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-21 12:14:45 +08:00
优化事件-减少GC
This commit is contained in:
@@ -130,7 +130,7 @@ func (s *Service) Run() {
|
||||
if s.profiler!=nil {
|
||||
analyzer = s.profiler.Push(fmt.Sprintf("[Event]%d", int(ev.Type)))
|
||||
}
|
||||
s.eventProcessor.EventHandler(ev)
|
||||
s.eventProcessor.EventHandler(&ev)
|
||||
if analyzer!=nil {
|
||||
analyzer.Pop()
|
||||
analyzer = nil
|
||||
|
||||
Reference in New Issue
Block a user