On 13/10/10 04:47, Kinkie wrote:
Hi all,
this patch-let makes implements a GCC feature to hint the branch
prediction algorithms about the likely outcome of a test. This is useful
to optimize the case of singleton patterns (e.g.
CacheManager::GetInstance).
This implements the likely() and unlikely() macros.
Kinkie
I'm neutral on this.
For now definitely hold the cache_manager.cc change until Alex SMP cache
manager updates are in.
I'm also fairly sure it can be done as a base template class to inherit
from. There are a mix of good and crap examples online. Some are fully
thread-safe.
Amos
--
Please be using
Current Stable Squid 2.7.STABLE9 or 3.1.8
Beta testers wanted for 3.2.0.2