Re: [FFmpeg-devel] [PATCH 2/3] lavu/rational: use av_unlikely in av_d2q

2016-02-27 Thread Ganesh Ajjanagadde
On Thu, Feb 25, 2016 at 7:25 AM, Nicolas George wrote: > Le sextidi 6 ventôse, an CCXXIV, Ganesh Ajjanagadde a écrit : >> Actual performance benefit is impossible to accurately quantify due to the >> context-dependence of the branch predictor. Nonetheless, as a ballpark >> estimate, it yields ~ 5%

Re: [FFmpeg-devel] [PATCH 2/3] lavu/rational: use av_unlikely in av_d2q

2016-02-25 Thread Nicolas George
Le sextidi 6 ventôse, an CCXXIV, Ganesh Ajjanagadde a écrit : > Actual performance benefit is impossible to accurately quantify due to the > context-dependence of the branch predictor. Nonetheless, as a ballpark > estimate, it yields ~ 5% improvements in testing via FATE on x86-64, > Haswell+GCC.

[FFmpeg-devel] [PATCH 2/3] lavu/rational: use av_unlikely in av_d2q

2016-02-24 Thread Ganesh Ajjanagadde
From: Ganesh Ajjanagadde Merely a simple illustration of av_unlikely's utility; there are certainly more interesting use cases. Actual performance benefit is impossible to accurately quantify due to the context-dependence of the branch predictor. Nonetheless, as a ballpark estimate, it yields ~