Skip to content

Remove sched_yield() from worker thread task pickup#435

Merged
mkrogius merged 1 commit into
AprilRobotics:masterfrom
bouk:bouk/remove-sched-yield
May 7, 2026
Merged

Remove sched_yield() from worker thread task pickup#435
mkrogius merged 1 commit into
AprilRobotics:masterfrom
bouk:bouk/remove-sched-yield

Conversation

@bouk

@bouk bouk commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

Seems not needed and has a big performance impact, testing with hyperfine against apriltag_demo -x 1.0 -t 4 -i 5 --family tagStandard52h13 --quiet <3 images.jpg> it leads to a 1.2x speedup against master! It makes sense if you look at the code, why should the thread yield right as it's about to execute a task?

Speedup is only on linux, on macOS it has no effect

Seems not needed and has a big performance impact.
@bouk bouk mentioned this pull request Mar 26, 2026
@mkrogius mkrogius merged commit d686c00 into AprilRobotics:master May 7, 2026
42 checks passed
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