develooper Front page | perl.perl5.porters | Postings from January 2013

Re: use of LIKELY() and UNLIKELY() branch predictors

Thread Previous | Thread Next
From:
bulk88
Date:
January 29, 2013 18:58
Subject:
Re: use of LIKELY() and UNLIKELY() branch predictors
Message ID:
BLU0-SMTP145BD7F1AC521A57FB60704DF1F0@phx.gbl
Dave Mitchell wrote:
> Perl defines the LIKELY() and UNLIKELY() macros, which (under gcc)
> tell the compiler whether a particular expression is likely to be true or
> not. This allows you to re-write something like

Why do it by hand, rather than use 
http://en.wikipedia.org/wiki/Profile-guided_optimization with a real 
work load (what is a real workload?)?


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About