Open
Conversation
pauldreik
reviewed
Mar 15, 2026
Collaborator
|
I think it would be great to provide a drop in replacement for gnu coreutils. then, it would be possible for users to either use an alias in .bashrc to get some nice speedup. the same thing could be done for mac/bsd, I assume? |
Member
Author
I think that the only difference is the meaning of the flag We have a few options.
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This makes fastbase64 somewhat equivalent to standard base64. Unfortunately, the GNU base64 and the non-GNU base64 tools differ. It tried to come up with some kind of hybrid that can emulate the two.
Apple M4 Benchmark Results (times in milliseconds):
x64 Linux Benchmark Results (times in milliseconds):
So for inputs that are 10 MB or larger, it pays to use fastbase64. For small inputs, the time is dominated by the process overhead.
The Apple base64 decoder is quite slow, so that's one use case where we may want to use fastbase64.
Fixes #907
Fixes #908