This PR was merged into the 2.x branch.
Discussion
----------
Optimize parser
Depending on the complexity of the template, I see up to 50% faster template compilation.
Commits
-------
510e5eba optimized the parser by inlining the constant values
This PR was merged into the 2.x branch.
Discussion
----------
Make a small performance improvement
And it also fixes some potential subtle bugs.
Commits
-------
27f905ed made a small performance improvement
This PR was squashed before being merged into the 1.x branch (closes#2647).
Discussion
----------
Fix profiler unicity when several ones are registered
Closes#2627, closes#2643, alternative to #2645
What happens is that both Twig and Symfony register a Twig profiler. Unfortunately, the current code does assign the same variable for both profiler, which means that trying to close it twice does not work.
Commits
-------
0ee096f0 fixed test
7b2bdbe3 fixed profiler unicity when several ones are registered
This PR was merged into the 1.x branch.
Discussion
----------
Switch the PHP ext jobs to a whitelist rather than a blacklist
Any new PHP version added in the future will be a PHP 7.x one, not a 5.x one, and so should not have a job for the extension.
the whitelist is already shorter than the blacklist today (3 whitelisted vs 4 blacklisted before, as PHP 5.3 is already handled separately due to precise anyway)
Commits
-------
738f17bb Switch the PHP ext jobs to a whitelist rather than a blacklist
This PR was squashed before being merged into the 2.x branch (closes#2641).
Discussion
----------
Optimize performance of calls to extensions at runtime
Commits
-------
540c9006 updated CHANGELOG
f4c5152f optimized calls to custom extension runtimes
279993b2 optimized performance when accessing extensions in templates
This PR was squashed before being merged into the 1.x branch (closes#2637).
Discussion
----------
Fix C ext
Commits
-------
bffc117f simplified code
a0c24242 fixed C ext
64e85689 fixed Travis config
This PR was merged into the 2.x branch.
Discussion
----------
Improve performance by inlining constants
This one was suggested by @nicolas-grekas and it is similar to what we've done for the Symfony container. That improves performance **a lot**. Combined with my previous pull request, method calls are now twice as fast as the current stable 2.x release.
Commits
-------
6a946960 improved performance by inlining constants
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
This PR was squashed before being merged into the 1.x branch (closes#2411).
Discussion
----------
Exception for use of "===" instead of "same as"
As mentioned in #2358
Hope this is the right location for this Exception
Commits
-------
194d51a4 Exception for use of "===" instead of "same as"
* 1.x:
Update .travis.yml
Fix possible array to string conversion concealing actual error
Make variable names deterministic
Be able to count on iterator
made it clear that placeholders are free-forms for the replace filter
contents -> content
This PR was submitted for the 2.x branch but it was merged into the 1.x branch instead (closes#2633).
Discussion
----------
Update .travis.yml to test on PHP 7.2
Commits
-------
8e7527ec Update .travis.yml
This PR was merged into the 1.x branch.
Discussion
----------
Fix possible array to string conversion concealing actual error
This is a 1.x branch backport of #2613
Commits
-------
7ba3b5a5 Fix possible array to string conversion concealing actual error
This PR was merged into the 1.x branch.
Discussion
----------
Make variable names deterministic
Variables should be deterministic to support reproducible builds as outlined in https://github.com/symfony/symfony/issues/25958
Commits
-------
6ab5fe9b Make variable names deterministic