Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@andreacorbellini
Copy link
Contributor

Being a single-threaded program, there's no benefit in having comm obtain a lock every time it needs to read a line. This commit removes the unnecessary overhead by obtaining a lock at the start of the program and keeping it for the whole duration of the program.

Being a single-threaded program, there's no benefit in having comm
obtain a lock every time it needs to read a line. This commit removes
the unnecessary overhead by obtaining a lock at the start of the program
and keeping it for the whole duration of the program.
@github-actions
Copy link

GNU testsuite comparison:

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 Oct 30, 2025

CodSpeed Performance Report

Merging #9085 will degrade performances by 3.86%

Comparing andreacorbellini:comm-no-lock (35360f7) with main (514291d)

Summary

❌ 1 regression
✅ 104 untouched

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
du_human_balanced_tree[(5, 4, 10)] 10.1 ms 10.5 ms -3.86%

@cakebaker cakebaker merged commit 0a76a39 into uutils:main Oct 30, 2025
162 of 165 checks passed
@cakebaker
Copy link
Contributor

Thanks for your PR!

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.

2 participants