[sheepdog] [PATCH] add likely/unlikely to performance critical path

MORITA Kazutaka morita.kazutaka at gmail.com
Sat Aug 10 09:20:07 CEST 2013


At Sat, 10 Aug 2013 12:41:22 +0800,
Liu Yuan wrote:
> 
> Sinc we are alrady here with likely/unlikely helper, we can make use of it in
> our performance critical path. Though the efffect might not be pronounced.
> 
> Signed-off-by: Liu Yuan <namei.unix at gmail.com>
> ---
>  include/sheep.h      |    2 +-
>  include/util.h       |   10 +++++-----
>  lib/net.c            |    2 +-
>  lib/strbuf.c         |   12 +++++------
>  lib/util.c           |   54 +++++++++++++++++++++++++-------------------------
>  lib/work.c           |    2 +-
>  sheep/journal.c      |   12 +++++------
>  sheep/md.c           |    6 +++---
>  sheep/object_cache.c |   32 +++++++++++++++---------------
>  sheep/plain_store.c  |   12 +++++------
>  10 files changed, 72 insertions(+), 72 deletions(-)

Applied, thanks.

Kazutaka


More information about the sheepdog mailing list