Feature #28544

Compilation of Fluid Templates into PHP files

Added by Sebastian Kurfuerst about 4 years ago. Updated almost 4 years ago.

Status:Resolved Start date:2011-07-28
Priority:Should have Due date:
Assigned To:Sebastian Kurfuerst % Done:

57%

Category:Core
Target version:-
Has patch:No

Subtasks

Bug #28545: (v4) fix encoding in HTML special chars VHResolvedBastian Waidelich

Bug #28546: (v4) add backporter tokens again to TemplateViewResolvedBastian Waidelich

Bug #28547: adjust backporter to show unused search/replace pairsResolvedSebastian Kurfuerst

Bug #28548: (v4) fix unit testsResolvedBastian Waidelich

Bug #28549: make widgets cacheable, i.e. not implement childnodeacces...New

Bug #28550: (v4) make widgets cacheable, i.e. not implement childnode...New

Bug #28551: (v4) backport VHTestAcceptedSebastian Kurfuerst

Bug #28552: (v5) write ViewHelper test for compiled run; adjust funct...New

Bug #28553: improve XHProf test setupNew

Bug #28554: (v4) implement feature flag to disable cachingNew

Task #28556: Collect profiling dataResolvedSebastian Kurfuerst

Bug #28557: Fix parameter type checking in FluidResolvedSebastian Kurfuerst

Associated revisions

Revision 63660b9b
Added by Sebastian Kurfuerst about 4 years ago

[!!!][FEATURE] Compilation of Fluid templates to PHP files

This adds a compile step to the parsing process of templates, layouts and
partials.
If no compiled cache file exists, Fluid will create it while parsing the
respective Fluid template.
The cache file is invalidated as soon as the template/layout/partial
has been modified (or if caches are flushed).
This speeds up the rendering process by factor 2-5!

Breaking change:

  • AbstractViewHelper::$arguments are no longer an object but an array.
    If you used $this->arguments->hasArgument() in your custom ViewHelpers,
    you'll have to replace this with $this->hasArgument()

Change-Id: Ia1e1ccd364a1d966b6c840273351ab00410c55cf
Resolves: #28544

History

#1 Updated by Sebastian Kurfuerst about 4 years ago

this speeds fluid up by a factor of 2 - 5 (depending on the template); and reduces memory by a factor of 2-50

#2 Updated by Mr. Hudson about 4 years ago

Patch set 1 of change Ia1e1ccd364a1d966b6c840273351ab00410c55cf has been pushed to the review server.
It is available at http://review.typo3.org/4004

#3 Updated by Sebastian Kurfuerst about 4 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 57 to 100

Also available in: Atom PDF