mirror of
https://github.com/TokTok/c-toxcore
synced 2026-04-01 09:05:43 +00:00
- `Ev` interface in `toxcore/ev.h` and `toxcore/ev.c`. - System-specific event loop backends (epoll, poll, win32) in `toxcore/os_event.c`. Performance Benchmarks (epoll backend): | Sockets (N) | Active (M) | Time (ns) | Time/Active (ns) | |------------:|-----------:|----------:|-----------------:| | 8 | 1 | 438 | 438 | | 64 | 1 | 438 | 438 | | 512 | 1 | 443 | 443 | | 1024 | 1 | 442 | 442 | | 1024 | 10 | 947 | 95 | | 1024 | 100 | 6,268 | 63 | | 1024 | 1024 | 61,875 | 60 |