StackOverflow Questions for Tag: micro-optimization

einpoklum
einpoklum

Reputation: 132108

Are scaled-index addressing modes a good idea?

Score: 6

Views: 1486

Answers: 2

Read More
Bobby
Bobby

Reputation: 85

Controlling class member layout AND destructor order

Score: 1

Views: 181

Answers: 2

Read More
Andrei Oniga
Andrei Oniga

Reputation: 8559

JavaScript: Is the `if / else` statement faster than the conditional statement in?

Score: 0

Views: 1872

Answers: 3

Read More
G. Fougeron
G. Fougeron

Reputation: 481

Do most compilers optimize MATMUL(TRANSPOSE(A),B)?

Score: 12

Views: 2093

Answers: 1

Read More
flying_raijin
flying_raijin

Reputation: 49

How can I find out the time required to perform of a particular instruction for Xtensa microprocessor for e.g. wsr / rsr?

Score: 1

Views: 343

Answers: 2

Read More
gerarddp
gerarddp

Reputation: 667

Is x >= 0 more efficient than x > -1?

Score: 6

Views: 780

Answers: 6

Read More
user20746246
user20746246

Reputation:

Fastest way to find 16bit match in a 4 element short array?

Score: 1

Views: 343

Answers: 3

Read More
Curious
Curious

Reputation: 557

Why XOR before SETcc?

Score: 7

Views: 901

Answers: 1

Read More
Daniel
Daniel

Reputation: 3011

In assembly, should branchless code use complementary CMOVs?

Score: 6

Views: 478

Answers: 1

Read More
Alex
Alex

Reputation: 10136

Fast sign of integer in C

Score: 18

Views: 34533

Answers: 5

Read More
user3568189
user3568189

Reputation: 29

why moving immediate value to register then adding it to second register is faster then add immediate value?

Score: 2

Views: 555

Answers: 0

Read More
bokan
bokan

Reputation: 3692

How many CPU cycles does it take to convert a String to an Integer?

Score: 0

Views: 1315

Answers: 3

Read More
CPlus
CPlus

Reputation: 4848

How can I perform a branchless conditional arithmetic operation in C?

Score: 1

Views: 424

Answers: 3

Read More
BeeOnRope
BeeOnRope

Reputation: 65046

Does the llvm-bolt instrumentation mode result in less accurate BOLT profiles?

Score: 4

Views: 427

Answers: 1

Read More
penguin2213
penguin2213

Reputation: 41

In c++ what is the importance in terms of performance of using 'else' in situations where it doesn't change the flow of the program?

Score: 2

Views: 204

Answers: 1

Read More
user22200698
user22200698

Reputation: 211

What are the pros and cons of int, unsigned int, uint_fastN_t, and int_fastN_t?

Score: 1

Views: 433

Answers: 3

Read More
Dinesh Maurya
Dinesh Maurya

Reputation: 852

Guidelines for using [[likely]] / [[unlikely]] attributes in c++20

Score: 5

Views: 752

Answers: 0

Read More
Algo
Algo

Reputation: 23

Why was the [[unlikely]] attribute used in this example?

Score: 0

Views: 216

Answers: 1

Read More
balajimc55
balajimc55

Reputation: 2295

What is the best way to set a register to zero in x86 assembly: xor, mov or and?

Score: 191

Views: 91819

Answers: 1

Read More
Jere
Jere

Reputation: 1266

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

Score: 2

Views: 1127

Answers: 3

Read More
PreviousPage 4Next