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

chore(perf): make template faster #32

Merged
merged 1 commit into from
Jun 27, 2024
Merged

Conversation

aleclarson
Copy link
Member

Tip

The owner of this PR can publish a preview release by commenting /publish in this PR. Afterwards, anyone can try it out by running pnpm add radashi@pr<PR_NUMBER>.

Description

Haven't benchmarked this yet, but it's a lot faster in theory. The question is whether the extra lines are worth it, which depends on how people are using the template function most often. For small strings, the perf gains of this PR are probably negligible.

Checklist

  • Changes are covered by tests if behavior has been changed or added
  • Tests have 100% coverage
  • If code changes were made, the documentation (in the /docs directory) has been updated

Resolves

@aleclarson aleclarson force-pushed the chore/template-rewrite branch 2 times, most recently from cbcbb81 to 7c18f1d Compare June 27, 2024 22:42
@aleclarson aleclarson merged commit 8e4eb5e into main Jun 27, 2024
4 checks passed
@aleclarson aleclarson added the 🔥 performance An improvement to runtime performance label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔥 performance An improvement to runtime performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant