gxkevin opened a new issue #886: brpc log performance
URL: https://github.com/apache/incubator-brpc/issues/886
 
 
   我有个问题,关于log的:
       1:目前我看到brpc的log中,使用了localtime_s/localtime_r,这两个函数应该调用了__tz_convert, 
__tz_convert,有tzset_lock全局锁,每次获取时间都会使用到kernel级别的futex锁,不知道我分析的对不对,这块getimeofday会不会好点
   
        #if _MSC_VER >= 1400
            localtime_s(&local_tm, &t);
       #else
           localtime_r(&t, &local_tm);
       #endif
   
       2:关于log打印的问题,目前多线程下,log打印是有锁的,当打印的内容比较多的时候,这个锁就会有一定的问题,是否有种无锁的设计方式?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to