Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve template compile performance #538

Merged
merged 28 commits into from
May 8, 2024
Merged

Improve template compile performance #538

merged 28 commits into from
May 8, 2024

Conversation

ghinda
Copy link
Member

@ghinda ghinda commented May 8, 2024

Changes:

  • New content-level store with memoized get functions, to speed up template insert when service worker is inactive.
  • Create a general purpose Messenger class for MessageChannel communication.
  • Use messaging for compiling templates on manifest v2.

ghinda added 28 commits May 4, 2024 11:59
Latest version throws react import useMemo error.
Improved messenger instance refresh in the page-parent script.
Add unit test for ckeditor.
Transform the from and account variables into a private async helper, for faster compiling.
…tead of using the store directly.

Use a different method to send the compile message in mv=2, instead of using sandbox compile directly.
Support parallel requests in the messenger.
Support context in async helpers.
Compile nested helpers before compiling the main template.
…sponses.

Speeds up data fetchers since we don't always need to wake up the service worker.
Disable the local keyboard template cache now that we have store-level cache.
Fix issues with logout in the popup.
@ghinda ghinda self-assigned this May 8, 2024
@ghinda ghinda merged commit c1be809 into master May 8, 2024
1 check passed
@ghinda ghinda deleted the ghinda--compile-perf branch May 8, 2024 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant