mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 10:20:43 -07:00
Introduce the AST Optimizer
... that can only optimize one thing: combine `| append: 'a' | append: 'b'` into a single `| append_all: ['a', 'b']` filter call. This avoids all the intermediate allocations caused by several `append`. Also introduce a new filter `append_all: [*items]`.
This commit is contained in:
@@ -84,6 +84,7 @@ require 'liquid/usage'
|
||||
require 'liquid/register'
|
||||
require 'liquid/static_registers'
|
||||
require 'liquid/template_factory'
|
||||
require 'liquid/optimizer'
|
||||
|
||||
# Load all the tags of the standard library
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user