Skip to content

Conversation

@tehtelev
Copy link

@tehtelev tehtelev commented Jan 2, 2026

WildcardUtil.fastMatch was heavily called and generated a ton of garbage, including from mods. Regular wildcards no longer use Regex. Instead, it uses an iterative algorithm with minimal overhead. For cases with @, a cache of compiled regular expressions is used. We've seen a reduction in the method load from 26 seconds to 7. The total allocation reduction by this method is about 25 GB.
A method for clearing this cache has been added. But it's best to clear it after exiting the world. Do you know where to insert this clearing call?

The same modpack is used.

image

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.

1 participant