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

Speed up load_class()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Major Major
    • None
    • 3.1.0-dev
    • Build System
    • None

      class_loader.php includes files too bad.

      function load_class($class):

      Win8 + SSD - on every page

      (0.00134s)	./includes/di/extension/config.php
      (0.00181s)	./includes/di/extension/core.php
      (0.00267s)	./includes/di/pass/collection_pass.php
      (0.00337s)	./includes/di/pass/kernel_pass.php
      (0.02329s)	
      (0.02331s)	
      (0.02719s)	./includes/db/driver/driver.php
      (0.02722s)	./includes/db/driver/mysql_base.php
      (0.02724s)	./includes/db/driver/mysqli.php
      (0.26142s)	./includes/cache/driver/interface.php
      (0.26144s)	./includes/cache/driver/base.php
      (0.26146s)	./includes/cache/driver/file.php
      (1.28221s)	./includes/config/config.php
      (1.28223s)	./includes/config/db.php
      (1.2851s)	./includes/cache/service.php
      (1.28627s)	./includes/filesystem.php
      (1.28752s)	./includes/extension/manager.php
      (1.28852s)	./includes/di/extension/ext.php
      (1.29582s)	
      (1.29583s)	
      (1.42703s)	./includes/event/kernel_request_subscriber.php
      (1.42746s)	./includes/event/kernel_exception_subscriber.php
      (1.42782s)	./includes/event/kernel_terminate_subscriber.php
      (2.54697s)	./includes/event/dispatcher.php
      (2.55036s)	./includes/request/interface.php
      (2.55039s)	./includes/request/request.php
      (2.55179s)	./includes/request/type_cast_helper_interface.php
      (2.55181s)	./includes/request/type_cast_helper.php
      (2.55254s)	./includes/request/deactivated_super_global.php
      (2.56053s)	./includes/session.php
      (2.56058s)	./includes/user.php
      (2.56438s)	./includes/auth/auth.php
      (2.56816s)	./includes/log/interface.php
      (2.56819s)	./includes/log/log.php
      (2.57116s)	./includes/event/extension_subscriber_loader.php
      (2.57278s)	./includes/extension/finder.php
      (2.57411s)	./includes/lock/flock.php
      (2.58218s)	./includes/template/locator.php
      (2.58219s)	./includes/style/resource_locator.php
      (2.58306s)	./includes/template/context.php
      (2.5838s)	./includes/template/template.php
      (2.58534s)	./includes/style/path_provider_interface.php
      (2.58535s)	./includes/style/path_provider.php
      (2.5861s)	./includes/extension/provider.php
      (2.58611s)	./includes/style/extension_path_provider.php
      (2.58666s)	./includes/style/style.php
      (2.58788s)	./includes/hook/finder.php
      (2.59278s)	./includes/di/service_collection.php
      (2.59411s)	./includes/cron/task/task.php
      (2.59412s)	./includes/cron/task/base.php
      (2.59413s)	./includes/cron/task/core/prune_all_forums.php
      (2.59532s)	./includes/cron/task/parametrized.php
      (2.59533s)	./includes/cron/task/core/prune_forum.php
      (2.59618s)	./includes/cron/task/core/queue.php
      (2.59698s)	./includes/cron/task/core/tidy_cache.php
      (2.59791s)	./includes/cron/task/core/tidy_database.php
      (2.59888s)	./includes/cron/task/core/tidy_search.php
      (2.59971s)	./includes/cron/task/core/tidy_sessions.php
      (2.60058s)	./includes/cron/task/core/tidy_warnings.php
      3(2.60105s)	./includes/cron/manager.php
      (2.60138s)	./includes/cron/task/wrapper.php
      (2.60853s)	./includes/auth/provider/interface.php
      (2.60854s)	./includes/auth/provider/db.php
      (2.61068s)	./includes/event/data.php
      (2.61822s)	./includes/datetime.php
      (2.62342s)	./includes/user_loader.php
      (2.62545s)	./includes/notification/type/interface.php
      (2.62546s)	./includes/notification/type/base.php
      (2.62548s)	./includes/notification/type/post.php
      (2.62549s)	./includes/notification/type/approve_post.php
      (2.62691s)	./includes/notification/type/topic.php
      (2.62693s)	./includes/notification/type/approve_topic.php
      (2.6279s)	./includes/notification/type/bookmark.php
      (2.62877s)	./includes/notification/type/disapprove_post.php
      (2.62965s)	./includes/notification/type/disapprove_topic.php
      (2.63084s)	./includes/notification/type/pm.php
      (2.63249s)	./includes/notification/type/post_in_queue.php
      (2.63357s)	./includes/notification/type/quote.php
      (2.63469s)	./includes/notification/type/report_pm.php
      (2.63572s)	./includes/notification/type/report_pm_closed.php
      (2.6368s)	./includes/notification/type/report_post.php
      (2.63885s)	./includes/notification/type/topic_in_queue.php
      (2.64081s)	./includes/notification/method/interface.php
      (2.64084s)	./includes/notification/method/base.php
      (2.64085s)	./includes/notification/method/messenger_base.php
      (2.64086s)	./includes/notification/method/email.php
      (2.64174s)	./includes/notification/method/jabber.php
      (2.64323s)	./includes/notification/manager.php
      (2.64771s)	./includes/template/compile.php
      (2.65037s)	./includes/template/filter.php
      (2.66116s)	./includes/template/renderer.php
      (2.66117s)	./includes/template/renderer_include.php
      

      The solution is, include the file only if its called the first time. Or?

            Marc Marc
            Kostenloses-Forum Kostenloses-Forum [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: