...
|
...
|
@@ -499,16 +499,16 @@ to enable by passing them to the constructor::
|
499
|
499
|
Twig supports the following optimizations:
|
500
|
500
|
|
501
|
501
|
* ``Twig_NodeVisitor_Optimizer::OPTIMIZE_ALL``, enables all optimizations
|
502
|
|
-(this is the default value).
|
|
502
|
+ (this is the default value).
|
503
|
503
|
* ``Twig_NodeVisitor_Optimizer::OPTIMIZE_NONE``, disables all optimizations.
|
504
|
|
-This reduces the compilation time, but it can increase the execution time
|
505
|
|
-and the consumed memory.
|
|
504
|
+ This reduces the compilation time, but it can increase the execution time
|
|
505
|
+ and the consumed memory.
|
506
|
506
|
* ``Twig_NodeVisitor_Optimizer::OPTIMIZE_FOR``, optimizes the ``for`` tag by
|
507
|
|
-removing the ``loop`` variable creation whenever possible.
|
|
507
|
+ removing the ``loop`` variable creation whenever possible.
|
508
|
508
|
* ``Twig_NodeVisitor_Optimizer::OPTIMIZE_RAW_FILTER``, removes the ``raw``
|
509
|
|
-filter whenever possible.
|
|
509
|
+ filter whenever possible.
|
510
|
510
|
* ``Twig_NodeVisitor_Optimizer::OPTIMIZE_VAR_ACCESS``, simplifies the creation
|
511
|
|
-and access of variables in the compiled templates whenever possible.
|
|
511
|
+ and access of variables in the compiled templates whenever possible.
|
512
|
512
|
|
513
|
513
|
Exceptions
|
514
|
514
|
----------
|