goober icon indicating copy to clipboard operation
goober copied to clipboard

Rewrote astish to recursion and shave some bytes

Open RealPeha opened this issue 2 years ago • 2 comments

Rewrote astish function to recursion instead of while loop and shave some bytes

Size comparison

Before:
Wrote 1183 B: goober.cjs.gz
       1079 B: goober.cjs.br
Wrote 1188 B: goober.esm.js.gz
       1085 B: goober.esm.js.br
Wrote 1257 B: goober.umd.js.gz
       1137 B: goober.umd.js.br
Wrote 1188 B: goober.modern.js.gz
       1085 B: goober.modern.js.br

After:

Wrote 1185 B: goober.cjs.gz
       1078 B: goober.cjs.br
Wrote 1186 B: goober.esm.js.gz
       1090 B: goober.esm.js.br
Wrote 1252 B: goober.umd.js.gz
       1134 B: goober.umd.js.br
Wrote 1186 B: goober.modern.js.gz
       1090 B: goober.modern.js.br

RealPeha avatar Jan 14 '22 18:01 RealPeha

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/cristianbote/goober-rocks/HnEjBNDq4bNbsURoSi4dGi8ho54u
✅ Preview: https://goober-rocks-git-fork-realpeha-shave-astish-528bf6-cristianbote.vercel.app

vercel[bot] avatar Jan 14 '22 18:01 vercel[bot]

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit e7a5e353ba85d01a6975ac4e2aaec0e5bcdbb3b7:

Sandbox Source
Vanilla Configuration

codesandbox-ci[bot] avatar Jan 14 '22 18:01 codesandbox-ci[bot]