jiangdongzi commented on issue #1724: URL: https://github.com/apache/incubator-brpc/issues/1724#issuecomment-1077331152
> 同意jamesge的观点,bthread的好处就是能让业务用同步的方式写代码,而在性能上能接近纯异步的效果。在pthread情况下如果坚持写同步代码,就会阻塞pthread,为了得到足够的并发度就得开很多的pthread,占用过多的系统资源,而且在pthread数量很多的情况下,切换的开销就会变大,而且锁之类的操作开销也会变大。 如果可以接近纯异步心里上倒也释怀了. 强迫症, 不到不得已,shared_ptr都不舍得用 -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
