Skip to content

Conversation

andycall
Copy link
Member

This PR eliminates the string encoding process during the evaluateScripts stage, which is unnecessary and can save an average of 15-20% of time when the bundle runs for the first time.

When the same scripts run multiple times, WebF will load the cached bytecode instead of the raw string, so this PR only optimizes the time during the initial run.

@andycall andycall added this pull request to the merge queue Nov 8, 2023
Merged via the queue into main with commit deb675a Nov 8, 2023
@andycall andycall deleted the feat/optimize_first_eval branch November 8, 2023 03:43
andycall added a commit that referenced this pull request Nov 18, 2023
This PR eliminates the string encoding process during the
evaluateScripts stage, which is unnecessary and can save an average of
15-20% of time when the bundle runs for the first time.

When the same scripts run multiple times, WebF will load the cached
bytecode instead of the raw string, so this PR only optimizes the time
during the initial run.

---------

Co-authored-by: openwebf-bot <openwebf@openwebf.com>
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.

3 participants