-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mutates the strings in order to pad them to the desired size, rather than constructing new strings. Also some minor updates to the `to_radix_str` algorithm to improve performance. This yields across the board improvements in benchmarks: | bench | improvement | |-----------------------------------|-------------| | generate cuid | ~18% | | generate cuid slug | ~14% | | generate many cuids | ~18% | | generate many slugs | ~17% | | multithreaded perf | ~9% | | multithreaded perf (many threads) | ~9% |
- Loading branch information
1 parent
a09bfad
commit 3a5cc2e
Showing
3 changed files
with
39 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters