Skip to content

Conversation

@harrydeluxe
Copy link
Owner

No description provided.

sanmai and others added 30 commits September 23, 2017 20:31
… next version of PHPUnit there will be none)
Virtual file system with a Closure as a callback
…stringValue/AbstractBlock::renderAll

This way complex objects could be passed between templates and to filters.
Context: defer object-to-string conversion
… coding standard

We can't have both braces on the next line after classes, and on the same for functions.
If we only would have to change braces by classes, that would be least possible change in terms of lines changed.
jkrenge and others added 30 commits May 14, 2023 08:22
Update PHP Coding Standards Fixer, bump PHP version support
* Fix: htmlentities(): Passing null to parameter 1 ($string) of type string is deprecated
* Create dependabot.yml

This file is used to automate the process of keeping the GitHub Actions dependencies up to date by configuring Dependabot to check for updates on a weekly basis and apply them as needed.

* Update .github/dependabot.yml

---------

Co-authored-by: Alexey Kopytko <[email protected]>
Co-authored-by: Graham Campbell <[email protected]>
Co-authored-by: Graham Campbell <[email protected]>
Bring the array syntax up to speed
* Improve performance

I have identified three main bottlenecks when profiling the code with xdebug:

1. `array_shift()`: The array of tokens ended up being renumbered on each iteration. So we instead set consumed tokens to `null`.
2. `mb_substr()`: Using mutltibyte here is unnecessary and overkill, when we can just operate directly on the string.
3. `Liquid::get()`:  This one surprised me, but due to the number of calls, here it is. Shave off more processing time by accessing the config array directly.


Co-authored-by: Alexey Kopytko <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.