Skip to content

perf(utils): replace pad with String.padStart#3371

Merged
charmander merged 2 commits into
brianc:masterfrom
cesco69:patch-4
Feb 7, 2025
Merged

perf(utils): replace pad with String.padStart#3371
charmander merged 2 commits into
brianc:masterfrom
cesco69:patch-4

Conversation

@cesco69
Copy link
Copy Markdown
Contributor

@cesco69 cesco69 commented Feb 6, 2025

Master 638,310 ops/s
PR     867,680 ops/s

Benchmark

@charmander charmander merged commit f10f569 into brianc:master Feb 7, 2025
@cesco69 cesco69 deleted the patch-4 branch February 10, 2025 07:55
@Romick2005
Copy link
Copy Markdown

Wouldn't it be better to move String.padStart into pad function? To have less changes and hae more flexability to change to some other new js furure "pad" function?

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.

3 participants