Skip to content

Conversation

@kimono-koans
Copy link
Contributor

@kimono-koans kimono-koans commented Sep 27, 2025

Cleanup PathData, remove requirement for mutable state.

Would fix: #8350

@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/tail/overlay-headers (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/misc/tee (passes in this run but fails in the 'main' branch)

@codspeed-hq
Copy link

codspeed-hq bot commented Sep 27, 2025

CodSpeed Performance Report

Merging #8753 will improve performances by 11.28%

Comparing kimono-koans:lazily_obtain_file_type (71b85c6) with main (4cab890)

Summary

⚡ 2 improvements
✅ 39 untouched
⏩ 64 skipped1

Benchmarks breakdown

Benchmark BASE HEAD Change
ls_recursive_long_all_wide_tree[(15000, 1500)] 106 ms 96.4 ms +9.92%
ls_recursive_wide_tree[(10000, 1000)] 51.7 ms 46.4 ms +11.28%

Footnotes

  1. 64 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@kimono-koans kimono-koans changed the title ls: Lazily obtain FileType, eagerly obtain metadata when metadata is available ls: Lazily obtain FileType, eagerly obtain Metadata when Metadata is available Sep 27, 2025
@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)

@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/overlay-headers (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)
Congrats! The gnu test tests/wc/wc-files0-from is no longer failing!

@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/tail/overlay-headers (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/misc/tee (passes in this run but fails in the 'main' branch)

@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/misc/stdbuf (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

@sylvestre
Copy link
Contributor

image 10% improvement, bravo!

Kudos

@sylvestre sylvestre merged commit 5c15d79 into uutils:main Sep 29, 2025
97 checks passed
// it will avoid a call to stat()
if !self.must_dereference {
if let Some(dir_entry) = &self.de {
if let Some(dir_entry) = RefCell::take(&self.de).as_deref() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RefCell::take() permanently removes the value, no ?
(it might impact caching)
Did you consider using self.de.borrow() instead ?

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.

ls excessive syscalls

2 participants