Skip to content

fix: significantly reduces memory usage - #900

Merged
ACTCD merged 1 commit into
mainfrom
memory-usage-analysis
Jan 10, 2026
Merged

fix: significantly reduces memory usage#900
ACTCD merged 1 commit into
mainfrom
memory-usage-analysis

Conversation

@ACTCD

@ACTCD ACTCD commented Jan 10, 2026

Copy link
Copy Markdown
Collaborator

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

1 participant