Search code examples
Why is processing a sorted array faster than processing an unsorted array?...


javac++performancecpu-architecturebranch-prediction

Read More
Is there a way to implement ReLU without if statements?...


mathoptimizationboolean-operationsbranch-predictionbranchless

Read More
Does excessive use of [[likely]] and [[unlikely]] really degrade program performance in C++?...


c++c++20compiler-optimizationbranch-predictionlikely-unlikely

Read More
What is the overhead of jumps and call-rets for CPU front-end decoder?...


performanceassemblyx86cpu-architecturebranch-prediction

Read More
Can branch prediction cause illegal instruction?...


assemblyx86-64cpu-architecturebranch-predictionspeculative-execution

Read More
difference between speculation and prediction...


cpu-architecturebranch-predictionspeculative-execution

Read More
Why prefer NOPs to unconditional jumps?...


assemblyoptimizationbranch-predictionno-op

Read More
How do the likely/unlikely macros in the Linux kernel work and what is their benefit?...


cgcclinux-kernelbranch-predictionlikely-unlikely

Read More
Why branch (miss)prediction doesn't impact performance (C++)?...


c++optimizationbranch-prediction

Read More
Performance penalty: denormalized numbers versus branch mis-predictions...


c++x86floating-pointmicro-optimizationbranch-prediction

Read More
Branch prediction in compiler level...


compiler-constructionbranch-prediction

Read More
Why is a CPU branch instruction slow?...


optimizationlanguage-agnosticcpucpu-architecturebranch-prediction

Read More
Why is (a*b != 0) faster than (a != 0 && b != 0) in Java?...


javaperformanceprocessing-efficiencymicrobenchmarkbranch-prediction

Read More
Why not just predict both branches?...


cpucpu-architectureprefetchbranch-predictionspeculative-execution

Read More
Can I improve branch prediction with my code?...


c++gccoptimizationbranch-predictionlikely-unlikely

Read More
Preserving the Execution pipeline with branch layout in C source? Which prediction do CPUs or compil...


ccpu-architecturecompiler-optimizationmicro-optimizationbranch-prediction

Read More
How can I make branchless code and how does it work?...


performancebit-manipulationbranch-predictionbranchless

Read More
Intel x86 0x2E/0x3E Prefix Branch Prediction actually used?...


gccx86x86-64branch-prediction

Read More
Correctly using C++20 `[[likely]]`/`[[unlikely]]` in `switch` statements...


c++attributesswitch-statementc++20branch-prediction

Read More
Is there a code that results in 50% branch prediction miss?...


cperformancecpu-architecturecompiler-optimizationbranch-prediction

Read More
Hint for branch prediction in assertions...


c++optimizationbranch-prediction

Read More
Why don't x86/ARM CPU just stop speculation for indirect branches when hardware prediction is no...


x86cpu-architecturebranch-prediction

Read More
Why branch prediction is faster than function call in enum?...


javaenumsjvmbranch-prediction

Read More
Optimization: Expensive branching vs cheap comparison for counting base10 digits (ilog10)...


c++optimizationcachingcpu-architecturebranch-prediction

Read More
Use branch prediction with no else statement...


javaalgorithmconventionsselection-sortbranch-prediction

Read More
Is using the result of comparison as int really branchless?...


c++ccomparisonbranch-predictionbranchless

Read More
Branch prediction and UB (undefined behavior)...


c++ccpu-architectureundefined-behaviorbranch-prediction

Read More
What is faster in C++: mod (%) or another counter?...


c++performanceassemblymicro-optimizationbranch-prediction

Read More
How far does GCC's __builtin_expect go?...


c++cgccoptimizationbranch-prediction

Read More
How much does a mispredicted conditional branch cost?...


performancecpubranch-prediction

Read More
BackNext