Closed kn2tod closed 2 years ago
Does this: for ($i = 0; $i < count($localTXList); $i++) { Vs: $TXListLim = count($localTXList); for ($i = 0; $i < $TXListLim; $i++) {
really represent a performance increase?
Yes. Of the few examples given for improving performance, this is almost a verbatim line copy from: O'Reilly Programming PHP 4th ed, page 346. Not a biggie obviously, but every little bit helps. Remember: Pi-Zero's struggle mightily just to keep up. :)
Change applied - didn't use this PR since it contains other changes.
unnecessary recalculation of loop limit INSIDE the loop!