Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-23754 Performance improvements META
  3. MDL-25429

Use static variables in functions to improve performance

    XMLWordPrintable

    Details

    • Database:
      Any
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      With using static variables in some cases it is possible to improve performance
      The changes we have done are here: http://git.luns.net.uk/moodle.git/?p=moodle.git;a=shortlog;h=refs/heads/cvshead-optimisation

      Each commit message contains profiling data indicating how the change affected performance. On average, suggested changes reduce the page generation time by 200ms (tested with moodle2/mod/forum/view.php?id=x) and increase memory usage by 1%

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dongsheng Dongsheng Cai
              Reporter:
              kabalin Ruslan Kabalin
              Participants:
              Component watchers:
              Matteo Scaramuccia, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: