base64: improve perfs by using the base64-simd crate (#8578)

* base64: improve perfs by using the base64-simd crate Closes: #8574

* Update src/uu/basenc/BENCHMARKING.md

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

* Update src/uu/basenc/BENCHMARKING.md

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
This commit is contained in:
Sylvestre Ledru
2025-09-09 09:51:23 +02:00
committed by GitHub
co-authored by Daniel Hofstetter
parent f51fe66f6c
commit 56bbc14279
7 changed files with 175 additions and 11 deletions
+23
View File
@@ -100,6 +100,16 @@ version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
[[package]]
name = "base64-simd"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "339abbe78e73178762e23bea9dfd08e697eb3f3301cd4be981c0f78ba5859195"
dependencies = [
"outref",
"vsimd",
]
[[package]]
name = "bigdecimal"
version = "0.4.8"
@@ -991,6 +1001,12 @@ dependencies = [
"unicode-width",
]
[[package]]
name = "outref"
version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1a80800c0488c3a21695ea981a54918fbb37abf04f4d0720c453632255e2ff0e"
[[package]]
name = "parse_datetime"
version = "0.11.0"
@@ -1596,6 +1612,7 @@ dependencies = [
name = "uucore"
version = "0.2.0"
dependencies = [
"base64-simd",
"bigdecimal",
"blake2b_simd",
"blake3",
@@ -1688,6 +1705,12 @@ version = "0.9.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
[[package]]
name = "vsimd"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c3082ca00d5a5ef149bb8b555a72ae84c9c59f7250f013ac822ac2e49b19c64"
[[package]]
name = "wasi"
version = "0.11.1+wasi-snapshot-preview1"