Commit Graph

173 Commits

Author SHA1 Message Date
Fabien Potencier fca80b536d Bump version 2022-02-04 07:58:43 +01:00
Fabien Potencier 66baa66f29 Prepare the 2.14.11 release 2022-02-04 07:57:25 +01:00
Fabien Potencier 4c225d504f Bump version 2022-01-03 22:14:18 +01:00
Fabien Potencier 95fb194cd4 Prepare the 2.14.10 release 2022-01-03 22:13:26 +01:00
Fabien Potencier e155d8dcfc Bump version 2022-01-03 12:00:21 +01:00
Fabien Potencier d28b8d7390 Prepare the 2.14.9 release 2022-01-03 11:46:18 +01:00
Fabien Potencier 3284859a1b Remove unneeded coments 2021-12-17 08:44:00 -08:00
Fabien Potencier 4d46ed3ac3 minor #3596 Optimize Environment::resolveTemplate() to be much faster when template overrides do not exist (mahagr)
This PR was squashed before being merged into the 2.x branch.

Discussion
----------

Optimize Environment::resolveTemplate() to be much faster when template overrides do not exist

Fixes partially #3595.

You can test this by adding an object into the context which implements `__debugInfo()` with a counter in it. Make a template with

```twig
{% include ['missing_template1', 'missing_template2', 'missing_template3', 'missing_template4', 'missing_template5'] %}
```

And check how many times an exception was thrown by reading the counter. The issue gets exponentially worse if you have nested templates with overrides in each of them.

Commits
-------

695423e1 Optimize Environment::resolveTemplate() to be much faster when template overrides do not exist
2021-12-17 08:43:16 -08:00
Matias Griese 695423e14e Optimize Environment::resolveTemplate() to be much faster when template overrides do not exist 2021-12-17 08:43:05 -08:00
Jérôme TAMARELLE 4fcc6b1c47 Use faster hash algorithm (xxh128) on PHP 8.1 2021-12-15 06:29:16 +01:00
Fabien Potencier 527c9e05c9 Bump version 2021-11-25 14:44:38 +01:00
Fabien Potencier 06b450a232 Prepare the 2.14.8 release 2021-11-25 14:38:06 +01:00
Fabien Potencier 78ac30114f Bump version 2021-09-17 10:41:05 +02:00
Fabien Potencier 8e202327ee Prepare the 2.14.7 release 2021-09-17 10:39:54 +02:00
Fabien Potencier 80de1a14c0 Bump version 2021-05-16 14:13:42 +02:00
Fabien Potencier 27e5cf2b05 Prepare the 2.14.6 release 2021-05-16 14:12:47 +02:00
Fabien Potencier f602d0c11d Bump version 2021-05-12 10:03:33 +02:00
Fabien Potencier c9dd15b3a8 Prepare the 2.14.5 release 2021-05-12 10:02:35 +02:00
Fabien Potencier 2dd1d909b9 Fix CS 2021-05-12 09:37:17 +02:00
Fabien Potencier 0b103dfeb0 Merge branch '1.x' into 2.x
* 1.x:
  added PHP 8.1 as experimental
2021-03-22 09:23:06 +01:00
Oleg Andreyev bef89dcc1e added PHP 8.1 as experimental 2021-03-22 09:19:53 +01:00
Fabien Potencier 37e48403c2 Bump version 2021-03-10 11:07:14 +01:00
Fabien Potencier 0b4ba691fb Prepare the 2.14.4 release 2021-03-10 11:05:55 +01:00
Fabien Potencier a0e2cc2572 Bump version 2021-01-05 16:39:16 +01:00
Fabien Potencier 8bc568d460 Prepare the 2.14.3 release 2021-01-05 16:34:33 +01:00
Fabien Potencier 393c9086ff Prepare the 2.14.2 release 2021-01-05 11:26:31 +01:00
Fabien Potencier 31adc5e157 Bump version to ${NEXT_VERSION}-DEV 2021-01-05 11:10:47 +01:00
Fabien Potencier 138c493c5b Prepare the 1.44.2 release 2021-01-05 11:10:05 +01:00
Fabien Potencier 8eb855ffb6 Bump version 2020-12-30 09:17:29 +01:00
Fabien Potencier b163c7f716 Bump version to 2.14.2-DEV 2020-10-27 20:26:34 +01:00
Fabien Potencier 5eb9ac5dfd Prepare the 2.14.1 release 2020-10-27 20:25:29 +01:00
Fabien Potencier cb4cd888ca Bump version to 1.44.2-DEV 2020-10-27 20:23:26 +01:00
Fabien Potencier 04b15d4c0b Prepare the 1.44.1 release 2020-10-27 20:22:48 +01:00
Fabien Potencier 59a3b141a7 Bump version to 2.14.1-DEV 2020-10-21 14:44:28 +02:00
Fabien Potencier d495243dad Prepare the 2.14.0 release 2020-10-21 14:35:06 +02:00
Fabien Potencier 18f9309f35 Bump version to 1.44.1-DEV 2020-10-21 14:33:23 +02:00
Fabien Potencier e7c93a4af5 Prepare the 1.44.0 release 2020-10-21 14:32:35 +02:00
Fabien Potencier 7c3f4ec8e9 Bump version 2020-08-23 14:01:50 +02:00
Fabien Potencier c6927de9e7 Bump version 2020-08-23 13:59:06 +02:00
Fabien Potencier 76f8ead7ef Bump version to 2.13.2-DEV 2020-08-05 17:10:06 +02:00
Fabien Potencier 57e9625977 Prepare the 2.13.1 release 2020-08-05 17:09:04 +02:00
Fabien Potencier 4ba9822987 Bump version to 1.43.2-DEV 2020-08-05 17:06:12 +02:00
Fabien Potencier 2311602f6a Prepare the 1.43.1 release 2020-08-05 17:05:05 +02:00
Fabien Potencier 92398cbd8d Bump version to 2.13.0-DEV 2020-07-05 15:09:13 +02:00
Fabien Potencier 46a612ba1b Prepare the 2.13.0 release 2020-07-05 15:08:05 +02:00
Fabien Potencier 7e08a97e0a Bump version to 1.43.1-DEV 2020-07-05 15:01:55 +02:00
Fabien Potencier 597a03e85a Prepare the 1.43.0 release 2020-07-05 15:00:49 +02:00
Fabien Potencier 36be0cd585 Bump version to 2.13 2020-05-19 15:07:44 +02:00
Fabien Potencier 52028f91eb Drop PHP 5 support 2020-05-19 07:02:07 +02:00
Fabien Potencier bf64959fb8 Merge branch '1.x' into 2.x
* 1.x:
  Tweaking phpdoc above Environment
  Identity Equals - Best practices
  Update default.rst
2020-03-17 15:09:30 +01:00