lukeed / lukeed/tempura

Revert to string concatenation

Open
#4 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

maybe
Dominant language
JavaScript
Stars
528
Forks
10
PR merge metrics
No merged PRs in 30d

Description

Made the code generation messier, but regains the ~8% performance hit that tempura Compilers are currently taking.

Also might be for nothing, since most minifiers (esbuild, terser) will just squash the transform() output back into a template literal string anyway.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Locate the tempura Compiler code-generation path and inspect how transform() produces output; compare string concatenation with the current template-literal approach. Done means restoring the proposed performance behavior and verifying the generated output remains correct, including after common minification.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
performance
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.