Skip to content

Conversation

jaapio
Copy link
Member

@jaapio jaapio commented Sep 20, 2025

  • array_walk is slower than a foreach, so buffer now uses foreach.
  • By caching some of the inline node parsers we can strip out about 9% of
    the overhead in the inline parser, as we do not have to check them for every token.

@jaapio jaapio changed the title Optimizations Micro optimizations Sep 20, 2025
@jaapio jaapio requested a review from linawolf September 21, 2025 07:44
Copy link
Contributor

@linawolf linawolf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, thank you!

jaapio added 3 commits October 5, 2025 20:23
- array_walk is slower than a foreach, so buffer now uses foreach.
- By caching some of the inline node parsers we can strip out about 9% of
  the overhead in the inline parser, as we do not have to check them for every token.
By sorting every call, we are just pumping up the system.
There is no need to do this, only when we need the files.
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.

2 participants