chenBright commented on PR #2749: URL: https://github.com/apache/brpc/pull/2749#issuecomment-2326458507
> 有测试这个性能提升的效果吗? 1. 自旋没啥效果,应该是因为触发条件比较苛刻,不好模拟。如果本地调度队列已经空了,进程负载应该不高,不自旋、多一次唤醒,问题也不大。 2. 测试第二点优化,性能没变化。性能最好的应该是修改之前的,公平性一般会牺牲一些性能。性能和公平性是需要权衡的,golang为了公平性还引入了饥饿模式,让等待队列中饥饿(排队时间超过1ms)的协程直接获得锁,新来的协程直接入队。目前第二点优化了一个公平性的小问题,且不会降低性能,应该是可以接受的。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org