Uploaded image for project: 'Doctrine 1'
  1. Doctrine 1
  2. DC-505

Doctrine_Cache_Db can be much faster

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0-ALPHA1, 1.2.0-ALPHA2, 1.2.0-ALPHA3, 1.2.0-BETA1, 1.2.0-BETA2, 1.2.0-BETA3, 1.2.0-RC1, 1.2.0, 1.2.1
    • Fix Version/s: 1.2.2
    • Component/s: Caching
    • Labels:
      None
    • Environment:
      Intel(R) Pentium(R) 4 CPU 3.20GHz, Redhat

      Description

      Each Doctrine_Cache_Db->_doFetch() invocation costs about 50 ms on my PC(depending on the data of course). By using built-in pack() function performance can be increased 700x times. Each invocation now costs about 0.07 ms. The change is very considerable for pages with multiple queries.

        Activity

        Hide
        jwage Jonathan H. Wage added a comment -

        Thanks for the issue and patch!

        Show
        jwage Jonathan H. Wage added a comment - Thanks for the issue and patch!

          People

          • Assignee:
            jwage Jonathan H. Wage
            Reporter:
            vadik56 vadik56
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: