forked from Shopify/liquid
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pull] master from Shopify:master #11
Open
pull
wants to merge
114
commits into
NOUIY:master
Choose a base branch
from
Shopify:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To obtain String Literal, the regular expression might be executed at two times. It would be slightly faster to run them all at once using `Regexp.union`. − | before | after | result -- | -- | -- | -- parse | 63.418 | 65.183 | 1.028x render | 195.389 | 195.648 | - parse & render | 46.091 | 46.917 | 1.018x ### Environment - MacBook Pro (14 inch, 2021) - macOS 13.0 Beta - Apple M1 Max - Ruby 3.1.2 ### Before ``` Running benchmark for 10 seconds (with 5 seconds warmup). Warming up -------------------------------------- parse: 6.000 i/100ms render: 19.000 i/100ms parse & render: 4.000 i/100ms Calculating ------------------------------------- parse: 63.418 (± 0.0%) i/s - 636.000 in 10.028939s render: 195.389 (± 0.5%) i/s - 1.957k in 10.016466s parse & render: 46.091 (± 0.0%) i/s - 464.000 in 10.067445s ``` ### After ``` Running benchmark for 10 seconds (with 5 seconds warmup). Warming up -------------------------------------- parse: 6.000 i/100ms render: 19.000 i/100ms parse & render: 4.000 i/100ms Calculating ------------------------------------- parse: 65.183 (± 0.0%) i/s - 654.000 in 10.033549s render: 195.648 (± 1.0%) i/s - 1.957k in 10.003511s parse & render: 46.917 (± 0.0%) i/s - 472.000 in 10.060782s ```
Increase performance in Liquid::Lexer#tokenize
In order to expose this state when using the parse tree.
Since liquid-c no longer monkey patches it, so we need a higher-level tests to ensure they are shared across liquid implementations.
…kwargs Reserve keyword arguments for new options in assert_template_result
Add partials, error_mode and render_errors options to assert_template_result
Co-authored-by: Dylan Thacker-Smith <[email protected]>
Expose alias_name and for_loop? in render tag
Use assert_template_result partials option to specify file system state
Added more context/ explanation for escape filter Fixes issue in dev docs Shopify/shopify-dev#26494
Update escape filter reference summary
set context's template_name with template.name in render and include tag
render template name with Liquid Syntax errors
Current url https://shopify.dev/docs/docs/api/liquid 404s. Updated to https://shopify.dev/docs/api/liquid
Update Liquid Documentation from Shopify URL
Fix broken documentantion link in README
…lock [trim] Fix trimming at end of raw block when specified in the opening tag
Add `sum` filter to standard filters
…ls_#to_liquid Ensure `sum` filter calls `to_liquid` on evaluated property value
include parse mode to partial cache key
[Liquid reference]: Update description of `capitalize`
Allow liquid tag inside liquid tag
Call to_liquid_value when short circuiting conditions
This reverts commit 27ead51.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot]
Can you help keep this open source service alive? 💖 Please sponsor : )