Skip to content

Conversation

@ACTCD
Copy link
Collaborator

@ACTCD ACTCD commented Jan 10, 2026

Somehow did not report another problem in the previous test, but discovered and further fixed it during QA.

Further prevents potential problems when the number of scripts is large, although unlikely to be of the same order of magnitude.

The memory peak of the test script was up to about ~25MB in the real-device test, due to dynamic compilation of @match patterns.

This problem will be further solved in version 5.0 due to the rewriting of related functions.

But currently it is unlikely that the limit will be exceeded again unless multiple large scripts are installed, which is effective as a mitigation measure.

@ACTCD ACTCD merged commit bdaf750 into main Jan 10, 2026
1 check passed
@ACTCD ACTCD deleted the investigate-memory-usage2 branch January 10, 2026 01:59
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