Commit Graph

3825 Commits

Author SHA1 Message Date
Fabien Potencier 5145bc55ff minor #2650 Optimize parser (fabpot)
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
2018-03-04 10:02:05 -08:00
Fabien Potencier 77725e2a47 minor #2649 Make a small performance improvement (fabpot)
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
2018-03-04 10:01:43 -08:00
Fabien Potencier 510e5eba7d optimized the parser by inlining the constant values 2018-03-04 09:07:52 -08:00
Fabien Potencier 27f905edbe made a small performance improvement 2018-03-04 08:56:47 -08:00
Fabien Potencier e4172ebe21 fixed version 2018-03-03 08:24:54 -08:00
Fabien Potencier f3023a87c4 bumped version to 2.4.7-DEV 2018-03-03 08:23:34 -08:00
Fabien Potencier d2117ec118 prepared the 2.4.6 release v2.4.6 2018-03-03 08:23:01 -08:00
Fabien Potencier f5ec8ed470 updated CHANGELOG 2018-03-03 08:19:28 -08:00
Fabien Potencier da473b5ac9 Merge branch '1.x' into 2.x
* 1.x:
  fixed test
  fixed profiler unicity when several ones are registered
2018-03-03 08:19:03 -08:00
Fabien Potencier 1278ca96af bug #2647 Fix profiler unicity when several ones are registered (fabpot)
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
2018-03-03 08:18:26 -08:00
Fabien Potencier 0ee096f092 fixed test 2018-03-03 07:53:48 -08:00
Fabien Potencier 7b2bdbe351 fixed profiler unicity when several ones are registered 2018-03-03 07:49:53 -08:00
Fabien Potencier 94dc7dfed7 bumped version to 2.4.6-DEV 2018-03-02 17:42:56 -08:00
Fabien Potencier 43b23931c6 prepared the 2.4.5 release v2.4.5 2018-03-02 17:41:58 -08:00
Fabien Potencier 9bac13daf0 fixed CS 2018-03-02 13:12:59 -08:00
Fabien Potencier e508c91b0b Merge branch '1.x' into 2.x
* 1.x:
  fixed CS
2018-03-02 13:11:50 -08:00
Fabien Potencier caf2caa8f4 fixed CS 2018-03-02 13:09:41 -08:00
Fabien Potencier f43aea9461 minor #2640 Remove obsolete code (fabpot)
This PR was merged into the 2.x branch.

Discussion
----------

Remove obsolete code

Commits
-------

09dee2f7 removed obsolete code
2018-03-02 13:08:50 -08:00
Fabien Potencier a7fc5261a4 Merge branch '1.x' into 2.x
* 1.x:
  Switch the PHP ext jobs to a whitelist rather than a blacklist
2018-03-02 13:06:02 -08:00
Fabien Potencier b047676503 minor #2639 Switch the PHP ext jobs to a whitelist rather than a blacklist (stof)
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
2018-03-02 13:05:33 -08:00
Fabien Potencier 633a781b04 feature #2641 Optimize performance of calls to extensions at runtime (fabpot)
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
2018-03-02 12:54:10 -08:00
Fabien Potencier 540c900649 updated CHANGELOG 2018-03-02 11:43:17 -08:00
Fabien Potencier f4c5152f45 optimized calls to custom extension runtimes 2018-03-02 11:10:19 -08:00
Fabien Potencier 279993b24d optimized performance when accessing extensions in templates 2018-03-02 11:10:19 -08:00
Fabien Potencier 09dee2f71e removed obsolete code 2018-03-02 10:19:02 -08:00
Fabien Potencier 14b4e5e1d5 Merge branch '1.x' into 2.x
* 1.x:
  bumped version to 1.35.2-DEV
  prepared the 1.35.1 release
2018-03-02 10:08:35 -08:00
Christophe Coevoet 738f17bb45 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.
2018-03-02 19:08:25 +01:00
Fabien Potencier 067ade15e6 bumped version to 1.35.2-DEV 2018-03-02 10:07:31 -08:00
Fabien Potencier ffda54d85c prepared the 1.35.1 release v1.35.1 2018-03-02 10:06:27 -08:00
Fabien Potencier be23d8d49d Merge branch '1.x' into 2.x
* 1.x:
  simplified code
  fixed C ext
  fixed Travis config
2018-03-02 10:05:25 -08:00
Fabien Potencier 277b400158 bug #2637 Fix C ext (fabpot)
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
2018-03-02 10:04:32 -08:00
Fabien Potencier bffc117f53 simplified code 2018-03-02 09:54:18 -08:00
Fabien Potencier a0c24242de fixed C ext 2018-03-02 09:53:02 -08:00
Fabien Potencier 64e856892b fixed Travis config 2018-03-02 09:53:02 -08:00
Fabien Potencier 89fbce2e13 updated CHANGELOG 2018-03-02 09:08:47 -08:00
Fabien Potencier 7e80b77d61 Merge branch '1.x' into 2.x
* 1.x:
  updated CHANGELOG
  added missing test
  Exception for use of "===" instead of "same as"
2018-03-02 09:06:37 -08:00
Fabien Potencier bf34cadf0f updated CHANGELOG 2018-03-02 08:56:04 -08:00
Fabien Potencier 445b706259 feature #2636 Improve performance by inlining constants (fabpot)
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
2018-03-02 08:22:33 -08:00
Fabien Potencier 6a946960fd improved performance by inlining constants 2018-03-02 08:19:08 -08:00
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
Fabien Potencier c917d35245 fixed resetting options hash when overriding all extensions 2018-03-02 07:46:13 -08:00
Fabien Potencier 89876d23e8 optimized the . operator performance 2018-03-02 07:44:33 -08:00
Fabien Potencier 1445246d8e added missing test 2018-03-02 06:04:04 -08:00
Fabien Potencier 9e7db77331 bug #2411 Exception for use of "===" instead of "same as" (sgotre)
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"
2018-03-02 06:02:21 -08:00
sgotre 194d51a4a8 Exception for use of "===" instead of "same as" 2018-03-02 06:02:16 -08:00
Fabien Potencier 00e925d49c Merge branch '1.x' into 2.x
* 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
2018-03-01 16:12:51 -08:00
Fabien Potencier e8555dc8ee minor #2633 Update .travis.yml to test on PHP 7.2 (gmponos)
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
2018-02-28 08:23:15 -08:00
Mponos George 8e7527ec97 Update .travis.yml 2018-02-28 08:23:05 -08:00
Fabien Potencier 8a7fba9560 bug #2624 Fix possible array to string conversion concealing actual error (finwe)
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
2018-02-07 20:24:52 +01:00
Fabien Potencier f2e5f4080c bug #2621 Make variable names deterministic (lstrojny)
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
2018-02-07 20:22:14 +01:00