why no likely() and unlikely() used in Ceph's source code?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I don't know where the file came from, but likely/unlikely markers are the
kind of micro-optimization that isn't worth the cost in Ceph dev resources
right now.
-Greg

On Monday, September 15, 2014, Tim Zhang <cofol1986 at gmail.com> wrote:

> Hey guys,
> After reading ceph source code, I find that there is a file named
> common/likely.h and it implements the function likely() and unlikey() which
> will optimize the prediction of code branch for cpu.
>  But there isn't any place using these two functions, I am curious
> about why the developer of ceph not using these two functions to achieve
> more performance. Can anyone provide some hints?
> BR
>


-- 
Software Engineer #42 @ http://inktank.com | http://ceph.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ceph.com/pipermail/ceph-users-ceph.com/attachments/20140915/bcc3049d/attachment-0001.htm>


[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux