Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-14797

Optimize common.php and other commonly used functions

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Obsolete
    • Icon: Medium Medium
    • 4.2.0alpha1
    • 4.1.0
    • Misc
    • None

    Description

      • common.php is used by compiled templates, and it could be beneficial to optimize the code in there if called often.
      • global instead of EZ_TEMPLATE_COMPILER_COMMON_CODE maybe (to use isset instead of defined)
      • Likewise look into most used functions in ezp and optimize them (trace with xdebug?)
      • Generally optimize foreach( array_key( $somevar ) as $key ) and array_key_exists throughout the code.

      Attachments

        1. array_key_exists_is_null_autoload.diff
          0.8 kB
        2. definition.diff
          8 kB
        3. kcachegrind.png
          kcachegrind.png
          11 kB
        4. override_array_cache.diff
          0.9 kB
        5. override_array_cache2.diff
          3 kB
        6. preg_opt.diff
          1 kB
        7. template_parser.diff
          1 kB

        Activity

          People

            andre1 andre1
            andre1 andre1
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: