Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-14129

Adding custom extensions autoloaders feature slow downs the board

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.5, 3.1.6-RC1
    • Fix Version/s: 3.2.0-b1
    • Component/s: Extensions, Other
    • Labels:
      None

      Description

      With the https://github.com/phpbb/phpbb/pull/2674 the feature to allow extensions adding custom autoloaders was added.
      As far as it iterates all subfolders in the ext/ folder for every page load, and moreover for every avatar/attachment-image loaded on a single page (as the function is called within includes/file.php too), it has a big perfomance impact.
      For me, it takes ~0.15 sec (measured with XDebug).

      The result of iterating should be cached.

      From IRC:

      [14:26] Nicofuma: We could cache this result actually.
      [14:26] rxu: would be very nice
      [14:26] rxu: thanks
      [14:26] Nicofuma: And generate a file in cache/autoload.php

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: