-
Notifications
You must be signed in to change notification settings - Fork 16
Libxev
Lukáš Lalinský edited this page Oct 31, 2025
·
3 revisions
- The kqueue backend is sketchy, it sometimes behaves strangely in
.no_waitmode. -
xev.Completionis huge. It would be much nicer if it worked the other way around, e.g.xev.Completionwould contain anopenum, andxev.TimerCompletionwould containxev.Completion. We would store*xev.Completionin the queue, which each operation can use@fieldParentPtron. Due to how our coroutines work, we don't really need to store copies of the completion. - Because libxev is callback-based, it assumes that memory copy is required in a lot more places than we actually need, because we allocate completions on stack and we can easily make sure that pointer that is in memory can stay valid until the operation completes.