Skip to content
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
wants to merge 114 commits into
base: master
Choose a base branch
from
Open

[pull] master from Shopify:master #11

wants to merge 114 commits into from

Conversation

pull[bot]
Copy link

@pull pull bot commented Aug 24, 2022

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

Watson1978 and others added 2 commits August 24, 2022 04:23
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
@pull pull bot added the ⤵️ pull label Aug 24, 2022
dylanahsmith and others added 27 commits August 25, 2022 12:03
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
dylanahsmith and others added 25 commits February 22, 2023 12:48
set context's template_name with template.name in render and include tag
render template name with Liquid Syntax errors
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
[Liquid reference]: Update description of `capitalize`
Call to_liquid_value when short circuiting conditions
@samdoiron samdoiron deleted the branch NOUIY:master September 14, 2023 18:27
@samdoiron samdoiron deleted the master branch September 14, 2023 18:27
@samdoiron samdoiron restored the master branch September 14, 2023 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.