Fabien Potencier 39deb6fe54 feature #2635 Optimize the performance of the dot operator (fabpot)
This PR was squashed before being merged into the 2.x branch (closes #2635).

Discussion
----------

Optimize the performance of the dot operator

This is an alternative to #2359 and #2361, and closes #2326.

Basically, we don't need to call `hasExtension()` at runtime for the sandbox check when calling the dot operator as we know if it's enabled at compile time (the cache hash depends on enables extensions).

My benchmarks shows a *huge* performance improvement (**around 20%**) by doing so (especially when not using the sandbox, which is almost always the case).

Commits
-------

c917d352 fixed resetting options hash when overriding all extensions
89876d23 optimized the . operator performance
2018-03-02 07:58:59 -08:00
2018-03-01 16:12:51 -08:00
2018-01-30 14:02:48 +01:00
2017-06-12 09:59:07 -07:00
2018-03-01 16:12:51 -08:00
2017-11-12 10:48:08 -08:00
2017-08-16 08:18:33 +02:00
2018-01-07 18:54:25 +01:00

Twig, the flexible, fast, and secure template language for PHP
==============================================================

Twig is a template language for PHP, released under the new BSD license (code
and documentation).

Twig uses a syntax similar to the Django and Jinja template languages which
inspired the Twig runtime environment.

More Information
----------------

Read the `documentation`_ for more information.

.. _documentation: http://twig.sensiolabs.org/documentation
Languages
PHP 99.9%