|
Originally Posted by RacinReaver
Would 3*log[10]|POSTCOUNT| + 1 be any more efficient calculation-wise?
|
From a technical standpoint, probably not; integer operations are faster than floating point ones, so log(POSTCOUNT ^ 3) + 1 has one step in which a floating point number is used (the addition), while 3 * log(POSTCOUNT) + 1 has two (the addition and multiplication).
This is assuming PHP's internal representation of integers and floating point numbers is different. Also, based on the speed of current computers, this would likely only make a difference if you're doing about fifty billion calculations or so, in which case you'd lop off a couple of seconds. So it probably doesn't matter much either way.
The final reason it wouldn't make a difference is that
I don't think that's the formula in the first place.
Jam it back in, in the dark.