Skip to content

Conversation

@Ioannis
Copy link
Contributor

@Ioannis Ioannis commented Sep 29, 2026

No description provided.

@Ioannis Ioannis requested review from arlen and benno September 29, 2026 09:53
Comment on lines -276 to +289
for($j = 0;$j < strlen($base);$j++) {
for($j = 0, $jMax = strlen($base); $j < $jMax; $j++) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How strongly do you feel about rewriting all these for loops?

Commentators in PHP documentation like to overoptimize performance, and calling strlen once per loop is a trivial rounding error in the overall cost of the page load. Personally I find the second line harder to read, but that's just opinion.

Sign in to join this conversation on GitHub.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants