Skip to content

CAT 042

unurgunite edited this page Jul 11, 2026 · 3 revisions

CAT-042 — sleep(0) → Fiber.yield

Severity: hint | Confidence: high | Auto-fix:

Description

sleep(0) → Fiber.yield — Use Fiber.yield instead of sleep(0) to yield control without the timer overhead.

Bad code

sleep(0)

Benchmark

Note

See bench results at bench/cat-042/

Clone this wiki locally