summaryrefslogtreecommitdiff
path: root/src/termio/mailbox.zig
AgeCommit message (Collapse)Author
2025-02-21Update libxev to use dynamic backend, support Linux configurabilityMitchell Hashimoto
Related to #3224 Previously, Ghostty used a static API for async event handling: io_uring on Linux, kqueue on macOS. This commit changes the backend to be dynamic on Linux so that epoll will be used if io_uring isn't available, or if the user explicitly chooses it. This introduces a new config `async-backend` (default "auto") which can be set by the user to change the async backend in use. This is a best-effort setting: if the user requests io_uring but it isn't available, Ghostty will fall back to something that is and that choice is up to us. Basic benchmarking both in libxev and Ghostty (vtebench) show no noticeable performance differences introducing the dynamic API, nor choosing epoll over io_uring.
2024-11-07move datastructures to dedicated "datastruct" packageMitchell Hashimoto
2024-07-15termio: writer => mailboxMitchell Hashimoto