StackOverflow Questions for Tag: premature-optimization

Flueras Bogdan
Flueras Bogdan

Reputation: 9497

Java foreach efficiency

Score: 23

Views: 15389

Answers: 6

Read More
Rogach
Rogach

Reputation: 27200

Which "if" construct is faster - statement or ternary operator?

Score: 90

Views: 92128

Answers: 6

Read More
Jin Kwon
Jin Kwon

Reputation: 21978

Can I cache getClass.hashCode()?

Score: 1

Views: 253

Answers: 2

Read More
oink
oink

Reputation: 1503

Efficiently taking the absolute value of an integer vector in C

Score: 2

Views: 1026

Answers: 2

Read More
nickf
nickf

Reputation: 546035

When is optimisation premature?

Score: 93

Views: 19188

Answers: 20

Read More
Amessihel
Amessihel

Reputation: 6384

Is it a good practice to instantiate a HashSet from an IEnumerable before using Contains()?

Score: 2

Views: 289

Answers: 1

Read More
Ivan Ivanyuk
Ivan Ivanyuk

Reputation: 342

Does wrapping lock into scope change when lock will be released?

Score: 1

Views: 215

Answers: 1

Read More
user22165515
user22165515

Reputation:

Is it worth moving `let` out of loop?

Score: 0

Views: 156

Answers: 1

Read More
Punit Patel
Punit Patel

Reputation: 9

All possible Combinations for this set of letternumbers

Score: -1

Views: 40

Answers: 1

Read More
Elijas Dapšauskas
Elijas Dapšauskas

Reputation: 1237

Should I minimize the usage of db_session in Pony ORM? What is the purpose of db_session?

Score: 2

Views: 1829

Answers: 1

Read More
syimyuzya
syimyuzya

Reputation: 13

Is there an example where using React.memo/PureComponent has worse performance than not using it?

Score: 1

Views: 49

Answers: 1

Read More
Jin Kwon
Jin Kwon

Reputation: 21978

Narrow scope of a variable and performance?

Score: 1

Views: 218

Answers: 2

Read More
James T
James T

Reputation: 3320

ColdFusion: More efficient structKeyExists() instead of isDefined()

Score: 22

Views: 8121

Answers: 2

Read More
Andy Faibishenko
Andy Faibishenko

Reputation: 1181

Are Java static calls more or less expensive than non-static calls?

Score: 113

Views: 62172

Answers: 11

Read More
Cheiron
Cheiron

Reputation: 3736

x > -1 vs x >= 0, is there a performance difference

Score: 39

Views: 3376

Answers: 11

Read More
GuruKulki
GuruKulki

Reputation: 26418

Calling a getter multiple times or calling once and assigning to a variable?

Score: 20

Views: 10362

Answers: 13

Read More
Black
Black

Reputation: 332

Object dynamic constness

Score: 0

Views: 43

Answers: 0

Read More
Aliaksandr Kazlou
Aliaksandr Kazlou

Reputation: 3301

Impact of Java streams from GC perspective or handling short-lived objects by the GC

Score: 9

Views: 2559

Answers: 1

Read More
user955249
user955249

Reputation:

Why swap doesn't use Xor operation in C++

Score: 13

Views: 6309

Answers: 5

Read More
autistic
autistic

Reputation: 15642

Why don't people use xor swaps?

Score: 3

Views: 2885

Answers: 4

Read More
PreviousPage 1Next