|
From: | Paul Eggert |
Subject: | Re: Using __builtin_expect (likely/unlikely macros) |
Date: | Sun, 14 Apr 2019 18:18:13 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
Alex Gramiak wrote:
the likely/unlikely macros are a nice way to indicate that a branch is exceedingly rare/common.
The cost (in making the C code harder to read, write and maintain) so often exceeds that benefit that I'd rather avoid these macros unless there's a good performance case for putting them in.
[Prev in Thread] | Current Thread | [Next in Thread] |