Skip to content

Make test parsing faster.#7405

Merged
Moderocky merged 3 commits intoSkriptLang:dev/featurefrom
Moderocky:fix-parsing-slow
Jan 6, 2025
Merged

Make test parsing faster.#7405
Moderocky merged 3 commits intoSkriptLang:dev/featurefrom
Moderocky:fix-parsing-slow

Conversation

@Moderocky
Copy link
Copy Markdown
Member

Description

The EffAssert syntax's condition regex check is ridiculously slow and it prioritises checking assertions without a message first. Since most have a message (and there are a lot of assertions) this is wasted time and ends up adding a couple of seconds to the parse time.

I've moved the no-message option to the third pattern so that it's checked last.
This is not a complete fix: RegexPatternElement needs some optimisation.


Target Minecraft Versions: any
Requirements: none
Related Issues: none

Copy link
Copy Markdown
Contributor

@ShaneBeee ShaneBeee left a comment

Choose a reason for hiding this comment

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

Yay faster tests

@Moderocky Moderocky merged commit b147bf0 into SkriptLang:dev/feature Jan 6, 2025
erenkarakal pushed a commit to erenkarakal/Skript that referenced this pull request Nov 26, 2025
* Testing.

* I'll have the third part first, please.

* Revert "Testing."

This reverts commit 52c3b75.
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.

4 participants