Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-14540

Adjust class recursive_dot_prefix_filter_iterator to increase performance

XMLWordPrintable

    Error rendering 'com.atlassian.jira.jira-view-issue-plugin:details-module'. Please contact your Jira administrators.

      Swapping conditions in the function accept() of the class \phpbb\recursive_dot_prefix_filter_iterator saves a lot of isDir() calls which is more expensive than $filename[0] checks.

      https://github.com/phpbb/phpbb/blob/3.1.x/phpBB/phpbb/recursive_dot_prefix_filter_iterator.php#L28

            nicofuma nicofuma
            rxu rxu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: