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 email composer #199

Merged
merged 19 commits into from
Nov 30, 2023
Merged

improve email composer #199

merged 19 commits into from
Nov 30, 2023

Conversation

JoaoVictor6
Copy link
Collaborator

In this branch, we improve the email composer service

Improvements

  • Render Rect-email only one time
    The render method of @react-email/render is very slow. To increase the speed of this service, we render one time and use this string to add roles or other dynamics info.
  • Memoize Roles
    To improve speed, we memoize used roles for accessing mongoDb one time for each role.

Result

Now, the time of executing is 28.594s with 4 instances!

Copy link

vercel bot commented Nov 30, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
trampar-de-casa ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 30, 2023 9:09pm

@JoaoVictor6 JoaoVictor6 merged commit fd362d9 into main Nov 30, 2023
2 checks passed
@JoaoVictor6 JoaoVictor6 deleted the improve-email-composer branch November 30, 2023 21:16
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