-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
chore: refactor to consolidate base64 encoding functions (alternative) #14160
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
Conversation
🦋 Changeset detectedLatest commit: f826d99 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
What tool are you using for benchmarking? Surprised the difference is so stark — locally it's more like 10x, which was still a surprise (and reason enough to use In basically all cases that we can't use |
That was mitata with a ~4MB file – I think the difference grows exponentially with the file size |
#14157, but with a simpler implementation of
base64_encode
andbase64_decode
. I got rid of theomitPadding
andalphabet
options, I think they're unnecessaryPlease don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm test
and lint the project withpnpm lint
andpnpm check
Changesets
pnpm changeset
and following the prompts. Changesets that add features should beminor
and those that fix bugs should bepatch
. Please prefix changeset messages withfeat:
,fix:
, orchore:
.Edits