Skip to content

Conversation

@ACTCD
Copy link
Collaborator

@ACTCD ACTCD commented Jan 10, 2026

fixes:

Thanks to @piquark6046 for providing a reproduction case in #899.

Using the above case script test, the peak memory usage is reduced from ~180MB to ~11MB. No more exceeding the iOS Safari Extension 80MB memory limit.

Avoid compiling RE repeatedly in loops, especially in large metadata scripts.
@ACTCD ACTCD merged commit dcb047e into main Jan 10, 2026
1 check passed
@ACTCD ACTCD deleted the memory-usage-analysis branch January 10, 2026 00:28
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.

Huge amount of @match field in the metadata block makes stuck Investigate Memory Limits on iOS

2 participants