Improve performance by pre-calculating values inside DrupalKernel::findSitePath()

Created on 12 August 2013, over 11 years ago
Updated 14 December 2023, 11 months ago

Please see https://api.drupal.org/api/drupal/includes!bootstrap.inc/function/conf_path/7#comment-50753 for explanation of performance improvements. The gist of it is that there are count() values placed directly within the for loops inside the function conf_path(). And after running several tests it seems that the performance of core as a whole could be improved, even if only slightly, by pre-calculating the count() values before they're placed into the for loop(s).

Patch to immediately follow.

πŸ“Œ Task
Status

Closed: outdated

Version

9.5

Component
BaseΒ  β†’

Last updated about 1 hour ago

Created by

πŸ‡ΊπŸ‡ΈUnited States jerdiggity

Live updates comments and jobs are added and updated live.
  • Performance

    It affects performance. It is often combined with the Needs profiling tag.

  • needs profiling

    It may affect performance, and thus requires in-depth technical reviews and profiling.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024