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

optimize ezcodepage cache

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • 3.10.0, 3.9.4, 4.0.0beta1
    • Caching
    • None

    Description

      The php files generated for codepages caches have one php opcode for every element of the codepage arrays, eg:

      $var = array();
      $var[0] = 0;
      ...
      $var['999'] = '999';
      

      A better solution is to have php code that generates a single php opcode for the same operation, ie:

      $var = array(
      0 => 0,
      ...
      '999' => '999'
      );
      

      The attached version of ezcodepage.php does this (modified an ezp 4 svn baseline).

      Attachments

        Activity

          People

            unknown unknown
            72f8acac-185f-4a54-9470-a7473f50daab@accounts.ibexa.co Gaetano Giunta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: