Commit graph

16715 commits

Author SHA1 Message Date
Sylvestre Ledru
bfaf5f7aef bench: remove some duplication 2025-09-30 15:35:59 +02:00
Sylvestre Ledru
b5ad68eaad
Merge pull request #8774 from sylvestre/perf-du-bench
du: add benchmark
2025-09-30 10:14:03 +02:00
Sylvestre Ledru
2dfad36c22
Merge pull request #8775 from cakebaker/clippy_re_enable_semicolon_if_nothing_returned
clippy: re-enable `semicolon_if_nothing_returned`
2025-09-30 10:13:07 +02:00
Daniel Hofstetter
9b8e31a685 uucore/perms: return value from if/else chain 2025-09-30 09:39:20 +02:00
Daniel Hofstetter
0db870399c clippy: re-enable semicolon_if_nothing_returned 2025-09-30 09:36:41 +02:00
Sylvestre Ledru
c4d8b4b5bf benchmark: create some tree functions 2025-09-30 08:59:13 +02:00
Sylvestre Ledru
4180c00c73 du: add benchmark 2025-09-30 08:59:13 +02:00
Sylvestre Ledru
acca436d6f
fix some benchmark (some of them were failing) (#8773)
Some checks are pending
CICD / Documentation/warnings (push) Waiting to run
CICD / MinRustV (push) Waiting to run
CICD / Dependencies (push) Waiting to run
CICD / Build/Makefile (push) Blocked by required conditions
CICD / Build/stable (push) Blocked by required conditions
CICD / Build/nightly (push) Blocked by required conditions
CICD / Binary sizes (push) Blocked by required conditions
CICD / Build (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Separate Builds (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/SELinux (push) Blocked by required conditions
CICD / Run benchmarks (CodSpeed) (push) Blocked by required conditions
GnuTests / Run GNU tests (native) (push) Waiting to run
GnuTests / Run GNU tests (SELinux) (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Check uudoc Documentation Generation / Verify uudoc generates correct documentation (push) Waiting to run
GnuTests / Aggregate GNU test results (push) Blocked by required conditions
Android / Test builds (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
Devcontainer / Verify devcontainer (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
WSL2 / Test (push) Waiting to run
2025-09-29 22:58:30 +02:00
Sylvestre Ledru
d1cd9998be fix some benchmark (some of them were failing) 2025-09-29 21:42:58 +02:00
mattsu
31d1f06735
Refactor uniq field skipping to avoid allocations (#8703)
* refactor uniq skip_fields to avoid allocations

* feat(uniq): add read error handling and optimize line processing

- Add read error localization keys to en-US and fr-FR locales
- Refactor print_uniq to use buffered line reading with LineMeta for case-insensitive comparisons, avoiding memory issues with large inputs
- Improve error handling by detecting read failures and exiting appropriately
2025-09-29 21:38:20 +02:00
Sylvestre Ledru
40d0cf0aa5
Merge pull request #8771 from cakebaker/clippy_lints_workspace_uucore
clippy: add missing `[lints] workspace = true` to `uucore/Cargo.toml`
2025-09-29 20:55:22 +02:00
Sylvestre Ledru
f7490ca627
Merge pull request #8764 from sylvestre/bench-uniq-2
uniq: reduce the size of the benchmarks
2025-09-29 20:28:40 +02:00
Sylvestre Ledru
7aacad3880 uniq: reduce the size of the benchmarks 2025-09-29 19:03:44 +02:00
Daniel Hofstetter
36b2bd5de0 Cargo.toml: disable lints that warn on uucore 2025-09-29 18:58:27 +02:00
Daniel Hofstetter
2c196e27c4 uucore/Cargo.toml: add [lints] workspace = true 2025-09-29 18:53:34 +02:00
Daniel Hofstetter
0e1a2dbeb1
Merge pull request #8769 from bakanovskii/uucore-fix-clippy
uucore: fix clippy warnings
2025-09-29 18:52:14 +02:00
Alexander Bakanovskii
089faa5c5c
uucore: fix clippy warnings 2025-09-29 17:38:20 +03:00
kimono-koans
5c15d7939b
ls: Lazily obtain FileType, eagerly obtain Metadata when Metadata is available (#8753)
Some checks are pending
CICD / Style/deps (push) Waiting to run
CICD / Documentation/warnings (push) Waiting to run
CICD / MinRustV (push) Waiting to run
CICD / Dependencies (push) Waiting to run
CICD / Build/Makefile (push) Blocked by required conditions
CICD / Build/stable (push) Blocked by required conditions
CICD / Build/nightly (push) Blocked by required conditions
CICD / Binary sizes (push) Blocked by required conditions
CICD / Build (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Separate Builds (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/SELinux (push) Blocked by required conditions
CICD / Run benchmarks (CodSpeed) (push) Blocked by required conditions
GnuTests / Run GNU tests (native) (push) Waiting to run
GnuTests / Run GNU tests (SELinux) (push) Waiting to run
GnuTests / Aggregate GNU test results (push) Blocked by required conditions
Android / Test builds (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
Devcontainer / Verify devcontainer (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
WSL2 / Test (push) Waiting to run
Improves the ls perf by +10% in some cases
2025-09-29 10:24:08 +02:00
Sylvestre Ledru
4cab890676
Merge pull request #8763 from bakanovskii/df-follow-symlinks
Some checks are pending
CICD / Style/deps (push) Waiting to run
CICD / Documentation/warnings (push) Waiting to run
CICD / MinRustV (push) Waiting to run
CICD / Dependencies (push) Waiting to run
CICD / Build/Makefile (push) Blocked by required conditions
CICD / Build/stable (push) Blocked by required conditions
CICD / Build/nightly (push) Blocked by required conditions
CICD / Binary sizes (push) Blocked by required conditions
CICD / Build (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Separate Builds (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/SELinux (push) Blocked by required conditions
CICD / Run benchmarks (CodSpeed) (push) Blocked by required conditions
GnuTests / Run GNU tests (native) (push) Waiting to run
GnuTests / Run GNU tests (SELinux) (push) Waiting to run
GnuTests / Aggregate GNU test results (push) Blocked by required conditions
Android / Test builds (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
Devcontainer / Verify devcontainer (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
WSL2 / Test (push) Waiting to run
df: follow symlinks
2025-09-28 23:28:48 +02:00
Sylvestre Ledru
84e624960e
Merge pull request #8672 from bakanovskii/who-and-pinky-fix-where-column
Some checks are pending
CICD / Style/deps (push) Waiting to run
CICD / Documentation/warnings (push) Waiting to run
CICD / MinRustV (push) Waiting to run
CICD / Dependencies (push) Waiting to run
CICD / Build/Makefile (push) Blocked by required conditions
CICD / Build/stable (push) Blocked by required conditions
CICD / Build/nightly (push) Blocked by required conditions
CICD / Binary sizes (push) Blocked by required conditions
CICD / Build (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Separate Builds (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/SELinux (push) Blocked by required conditions
CICD / Run benchmarks (CodSpeed) (push) Blocked by required conditions
GnuTests / Run GNU tests (native) (push) Waiting to run
Android / Test builds (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
GnuTests / Run GNU tests (SELinux) (push) Waiting to run
GnuTests / Aggregate GNU test results (push) Blocked by required conditions
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
Devcontainer / Verify devcontainer (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
WSL2 / Test (push) Waiting to run
who/pinky: fix systemd local host
2025-09-28 22:53:57 +02:00
Sylvestre Ledru
bd7581fab2
Merge pull request #8671 from cakebaker/pinky_move_test
pinky: move unit test away from the integration tests
2025-09-28 22:47:46 +02:00
Dmitry Sviridkin
ec7e88ff5b
Remove extra lookups and memory allocations from tsort graph construction (#8694) 2025-09-28 22:46:55 +02:00
Sylvestre Ledru
33e37c6cf3
Merge pull request #8762 from sylvestre/bench-uniq
uniq: add benchmarks
2025-09-28 22:20:40 +02:00
Alexander Bakanovskii
d6985039c9
tests/df: test follow symlinks
Signed-off-by: Alexander Bakanovskii <skotttt228@gmail.com>
2025-09-28 23:06:31 +03:00
Sylvestre Ledru
7b3994b241 uniq: add benchmarks 2025-09-28 21:17:29 +02:00
Alen Antony
52c71dcac9
Merge pull request #8747 from Anonymous-AAA/fix-recursive-cp-backslash
cp: fix recursive cp fails on files with trailing backslashes
2025-09-28 19:20:10 +02:00
Sylvestre Ledru
2e0e487749
Merge pull request #8758 from sylvestre/codspeed
Codspeed: reduce the number of tests and increase some values for long tests
2025-09-28 18:37:17 +02:00
Sylvestre Ledru
eec68f6ddf bench: increase some run times 2025-09-28 17:18:58 +02:00
Sylvestre Ledru
0431ea37b4 bench: only keep the big values 2025-09-28 17:10:24 +02:00
Daniel Hofstetter
70828009a4
Merge pull request #8757 from sylvestre/realpath-E
Some checks failed
Code Quality / Style/toml (push) Waiting to run
CICD / Documentation/warnings (push) Waiting to run
CICD / MinRustV (push) Waiting to run
CICD / Dependencies (push) Waiting to run
CICD / Build/Makefile (push) Blocked by required conditions
CICD / Build/stable (push) Blocked by required conditions
CICD / Build/nightly (push) Blocked by required conditions
CICD / Binary sizes (push) Blocked by required conditions
CICD / Build (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Separate Builds (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/SELinux (push) Blocked by required conditions
CICD / Run benchmarks (CodSpeed) (push) Blocked by required conditions
GnuTests / Run GNU tests (native) (push) Waiting to run
GnuTests / Run GNU tests (SELinux) (push) Waiting to run
GnuTests / Aggregate GNU test results (push) Blocked by required conditions
Android / Test builds (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
Devcontainer / Verify devcontainer (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
WSL2 / Test (push) Waiting to run
Check uudoc Documentation Generation / Verify uudoc generates correct documentation (push) Has been cancelled
realpath: implement -E
2025-09-28 13:26:02 +02:00
Sylvestre Ledru
cbccc9a456 realpath: implement -E 2025-09-28 10:34:56 +02:00
Sylvestre Ledru
32eef0687d
Merge pull request #8749 from cakebaker/wc_fix_files0_from
Some checks failed
CICD / Documentation/warnings (push) Has been cancelled
CICD / MinRustV (push) Has been cancelled
CICD / Dependencies (push) Has been cancelled
CICD / Code Coverage (push) Has been cancelled
CICD / Separate Builds (push) Has been cancelled
GnuTests / Run GNU tests (native) (push) Has been cancelled
GnuTests / Run GNU tests (SELinux) (push) Has been cancelled
Code Quality / Style/spelling (push) Has been cancelled
Android / Test builds (push) Has been cancelled
Code Quality / Style/format (push) Has been cancelled
Code Quality / Style/lint (push) Has been cancelled
Code Quality / Style/toml (push) Has been cancelled
Code Quality / Style/Python (push) Has been cancelled
Code Quality / Pre-commit hooks (push) Has been cancelled
Devcontainer / Verify devcontainer (push) Has been cancelled
Check uudoc Documentation Generation / Verify uudoc generates correct documentation (push) Has been cancelled
FreeBSD / Style and Lint (push) Has been cancelled
FreeBSD / Tests (push) Has been cancelled
WSL2 / Test (push) Has been cancelled
CICD / Build/Makefile (push) Has been cancelled
CICD / Build/stable (push) Has been cancelled
CICD / Binary sizes (push) Has been cancelled
CICD / Build (push) Has been cancelled
CICD / Tests/BusyBox test suite (push) Has been cancelled
CICD / Tests/Toybox test suite (push) Has been cancelled
CICD / Test all features separately (push) Has been cancelled
CICD / Build/SELinux (push) Has been cancelled
CICD / Run benchmarks (CodSpeed) (push) Has been cancelled
GnuTests / Aggregate GNU test results (push) Has been cancelled
CICD / Build/nightly (push) Has been cancelled
wc: adapt error message to pass `wc-files0-from`
2025-09-26 18:18:39 +02:00
Sylvestre Ledru
9b80a98e86
Merge pull request #8748 from cakebaker/sort_fix_files0_from
sort: adapt error message to pass `sort-files0-from`
2025-09-26 17:57:19 +02:00
Daniel Hofstetter
905714ca79 wc: adapt error message to pass wc-files0-from 2025-09-26 17:46:59 +02:00
Daniel Hofstetter
7739598980 sort: adapt error message to pass sort-files0-from 2025-09-26 17:28:55 +02:00
Sylvestre Ledru
20c27790ff
Merge pull request #8702 from Ecordonnier/eco/makefile-stdbuf
Some checks are pending
CICD / Style/deps (push) Waiting to run
CICD / Documentation/warnings (push) Waiting to run
CICD / MinRustV (push) Waiting to run
CICD / Dependencies (push) Waiting to run
CICD / Build/Makefile (push) Blocked by required conditions
CICD / Build/stable (push) Blocked by required conditions
CICD / Build/nightly (push) Blocked by required conditions
CICD / Binary sizes (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Separate Builds (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/SELinux (push) Blocked by required conditions
CICD / Run benchmarks (CodSpeed) (push) Blocked by required conditions
GnuTests / Run GNU tests (native) (push) Waiting to run
GnuTests / Run GNU tests (SELinux) (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Devcontainer / Verify devcontainer (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
WSL2 / Test (push) Waiting to run
CICD / Build (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
GnuTests / Aggregate GNU test results (push) Blocked by required conditions
Android / Test builds (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
makefile: fix build with overriden UTILS
2025-09-26 08:42:56 +02:00
Sylvestre Ledru
f1c8a72a69
Merge pull request #8738 from sylvestre/perf-ls
Some checks are pending
CICD / Style/cargo-deny (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Documentation/warnings (push) Waiting to run
CICD / MinRustV (push) Waiting to run
CICD / Dependencies (push) Waiting to run
CICD / Build/Makefile (push) Blocked by required conditions
CICD / Build/stable (push) Blocked by required conditions
CICD / Build/nightly (push) Blocked by required conditions
CICD / Binary sizes (push) Blocked by required conditions
CICD / Build (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Separate Builds (push) Waiting to run
CICD / Build/SELinux (push) Blocked by required conditions
CICD / Run benchmarks (CodSpeed) (push) Blocked by required conditions
GnuTests / Run GNU tests (native) (push) Waiting to run
GnuTests / Run GNU tests (SELinux) (push) Waiting to run
GnuTests / Aggregate GNU test results (push) Blocked by required conditions
Android / Test builds (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
Devcontainer / Verify devcontainer (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
WSL2 / Test (push) Waiting to run
ls: add some benchmarks
2025-09-25 22:41:09 +02:00
Etienne Cordonnier
873c37691d makefile: fix build with overriden UTILS
The make build was failing when the list of UTILS didn't contain stdbuf.
This fixes this issue by adding feat_externa_libstdbuf only when stdbuf is being compiled.

Fixes https://github.com/uutils/coreutils/issues/8701

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
2025-09-25 22:29:45 +02:00
Sylvestre Ledru
955b100517 github/action: improve the clippy run
freebsd was detecting issues the linux jobs were not
2025-09-25 22:05:22 +02:00
Sylvestre Ledru
503f0101ea ls: add some benchmarks 2025-09-25 22:05:22 +02:00
Sylvestre Ledru
ea5c8158d4
Merge pull request #8735 from sylvestre/sort-perf-2
Some checks are pending
CICD / Build (push) Blocked by required conditions
CICD / Style/deps (push) Waiting to run
CICD / Documentation/warnings (push) Waiting to run
CICD / MinRustV (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Dependencies (push) Waiting to run
CICD / Build/Makefile (push) Blocked by required conditions
CICD / Build/stable (push) Blocked by required conditions
CICD / Build/nightly (push) Blocked by required conditions
CICD / Binary sizes (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Separate Builds (push) Waiting to run
CICD / Build/SELinux (push) Blocked by required conditions
CICD / Run benchmarks (CodSpeed) (push) Blocked by required conditions
GnuTests / Aggregate GNU test results (push) Blocked by required conditions
GnuTests / Run GNU tests (native) (push) Waiting to run
GnuTests / Run GNU tests (SELinux) (push) Waiting to run
Android / Test builds (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
Devcontainer / Verify devcontainer (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
WSL2 / Test (push) Waiting to run
sort: add benchmark
2025-09-25 21:45:25 +02:00
Sylvestre Ledru
5b0d17318a benchmark: refactor some code to avoid duplications 2025-09-25 21:22:13 +02:00
Sylvestre Ledru
d453ea9c3f spell: disable spell checks on benchmarks 2025-09-25 21:12:30 +02:00
Sylvestre Ledru
47c0d19ed9 sort: add benchmark 2025-09-25 20:39:44 +02:00
Daniel Hofstetter
5efafd6563
Merge pull request #8734 from sylvestre/l10n-perf
Some checks are pending
CICD / Style/deps (push) Waiting to run
CICD / Build (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Separate Builds (push) Waiting to run
CICD / Documentation/warnings (push) Waiting to run
CICD / MinRustV (push) Waiting to run
CICD / Dependencies (push) Waiting to run
CICD / Build/nightly (push) Blocked by required conditions
CICD / Build/Makefile (push) Blocked by required conditions
CICD / Build/stable (push) Blocked by required conditions
CICD / Binary sizes (push) Blocked by required conditions
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/SELinux (push) Blocked by required conditions
CICD / Run benchmarks (CodSpeed) (push) Blocked by required conditions
GnuTests / Aggregate GNU test results (push) Blocked by required conditions
GnuTests / Run GNU tests (native) (push) Waiting to run
GnuTests / Run GNU tests (SELinux) (push) Waiting to run
Android / Test builds (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
Devcontainer / Verify devcontainer (push) Waiting to run
WSL2 / Test (push) Waiting to run
l10n: replace the hash table by a long match per file to faciliate th…
2025-09-25 11:09:48 +02:00
Daniel Hofstetter
e028c6b739
Merge pull request #8740 from loskutov/patch-1
uucore: parse_time: avoid expensive `with_scale(9)` for huge inputs
2025-09-25 10:20:27 +02:00
Daniel Hofstetter
189b095fd1
Merge pull request #8736 from uutils/sylvestre-patch-1
Add tests/tail/overlay-headers to the intermittent list
2025-09-25 09:29:10 +02:00
Ignat Loskutov
3d727ca747
uucore: parse_time: avoid expensive with_scale(9) for huge inputs
The conversion routine used to parse the time into a BigDecimal and normalize it into nanoseconds; however, for an input like 1e6666666666668320 it would require allocating a number with 6666666666668329 zeroes, which is obviously suboptimal (and redundant, as `Duration` uses `u64` for seconds).

Fixes #8634.
2025-09-25 01:42:37 +02:00
Sylvestre Ledru
7dbeb8f7f2
Merge pull request #8726 from sylvestre/perf-fmt
Some checks are pending
CICD / Build/Makefile (push) Blocked by required conditions
CICD / Build/stable (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Style/cargo-deny (push) Waiting to run
CICD / Documentation/warnings (push) Waiting to run
CICD / MinRustV (push) Waiting to run
CICD / Dependencies (push) Waiting to run
CICD / Build/nightly (push) Blocked by required conditions
CICD / Binary sizes (push) Blocked by required conditions
CICD / Build (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
GnuTests / Run GNU tests (native) (push) Waiting to run
Android / Test builds (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
WSL2 / Test (push) Waiting to run
CICD / Code Coverage (push) Waiting to run
CICD / Separate Builds (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/SELinux (push) Blocked by required conditions
CICD / Run benchmarks (CodSpeed) (push) Blocked by required conditions
GnuTests / Run GNU tests (SELinux) (push) Waiting to run
GnuTests / Aggregate GNU test results (push) Blocked by required conditions
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Devcontainer / Verify devcontainer (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
numfmt: add benchmark
2025-09-24 22:11:59 +02:00
Sylvestre Ledru
2ed2157ce3 numfmt: add benchmark 2025-09-24 21:18:50 +02:00