Closed (fixed)
Project:
Chaos Tool Suite (ctools)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Jul 2013 at 07:58 UTC
Updated:
14 Feb 2014 at 22:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ezra-g commentedI tested in customized Drupal commons 7.x-3.x site that made extensive use of Panels and in some pages this patch eliminated ~128,000 calls to the t() function, significant emory use, and reduced page execution time by 2 seconds. We haven't noticed any ill effects. Marking as RTBC.
Comment #2
maximpodorov commentedI would suggest to add more caching, not just in token_content_type. Number of t() calls reduces significantly, really.
The patch implements more static caching, utilizes drupal_static_fast pattern and moves repeated things out of loops.
Comment #3
japerryHere is a patch that applies cleanly to the latest patches in ctools
Comment #4
japerryFor bookkeeping:
https://drupal.org/files/ctools-add-static-cache-to-ctools_token_content...
Was applied in this commit:
http://drupalcode.org/project/ctools.git/commit/cdc45d0d35c096d227251dd9...
The patch in #2/#3 should add the functionality listed in #2.
Comment #5
maximpodorov commentedIs patch #3 supposed to be committed? :)
Comment #6
andypost#3 is just a re-roll of #2 so RTBC
Comment #7
japerryGreat, its committed now:
http://drupalcode.org/project/ctools.git/commit/a333dfc