- Status changed to Needs review
over 2 years ago 9:55pm 18 January 2023 - Status changed to RTBC
over 2 years ago 2:54pm 19 January 2023 The last submitted patch, 10: 3192830-10.patch, failed testing. View results →
- last update
about 2 years ago 29,367 pass - Merge request !8275Resolve #3192830 "Twigrendertemplate micro optimization" → (Closed) created by neclimdul
- Status changed to Needs review
11 months ago 10:04pm 3 June 2024 - Status changed to RTBC
11 months ago 10:36pm 3 June 2024 - Status changed to Fixed
11 months ago 10:47pm 7 June 2024 - 🇬🇧United Kingdom longwave UK
Not convinced this is really going to make any measurable difference in the real world, but it makes the code a bit easier to read.
Backported to 10.3.x as a cleanup with no functional changes.
Committed and pushed 0ba6b793c6 to 11.x and 1eac567fbb to 11.0.x and d7549f3c3a to 10.4.x and ffdafb02cd to 10.3.x. Thanks!
-
longwave →
committed ffdafb02 on 10.3.x
Issue #3192830 by neclimdul: twig_render_template micro optimization (...
-
longwave →
committed ffdafb02 on 10.3.x
-
longwave →
committed d7549f3c on 10.4.x
Issue #3192830 by neclimdul: twig_render_template micro optimization (...
-
longwave →
committed d7549f3c on 10.4.x
-
longwave →
committed 1eac567f on 11.0.x
Issue #3192830 by neclimdul: twig_render_template micro optimization (...
-
longwave →
committed 1eac567f on 11.0.x
-
longwave →
committed 0ba6b793 on 11.x
Issue #3192830 by neclimdul: twig_render_template micro optimization
-
longwave →
committed 0ba6b793 on 11.x
- 🇺🇸United States neclimdul Houston, TX
Nice!
Yeah, probably not measurable from a wall clock perspective with current PHP performance hence the title. However, it removes one assignment, one function call to implode, and the admittedly trivial string concats implode is doing from every twig_render. This means on a stock Drupal install it saves 54 function calls and assignments on an uncached request to the frontpage so its at least measurable from that metric. Since most sites are probably more complex then that and as you said its actually a bit cleaner it seemed worth while.
Automatically closed - issue fixed for 2 weeks with no activity.