mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 12:26:30 +00:00
92ebfcb1ccbe7efdd53c0fdf71f4de82e81bc9be
This PR was squashed before being merged into the 2.x branch (closes #2618). Discussion ---------- Optimized compilation for arrays when using a['b'] notation Under certain conditions, and thanks to the `??` operator, it's possible to optimize array calls (and avoid the call to `twig_get_attribute()`). On my local machine, code is almost twice as fast, which is nice if you are using a lot of `a["b"]` calls of nested ones. refs #2547 Commits -------6f7ea45coptimized nested array callsf3b8f4a8added some testsd501e0e5optimized compilation for arrays when using a['b'] notation under certain conditions
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
Description
Languages
PHP
99.9%