Bindings for the Linux epoll system call. The binding avoids most allocation in the event loop by iterating over all file descriptors that are reported as ready.
Published: 06 Aug 2023
Small, simple, and self-contained
Avoids most allocation in the event loop
Note that epoll is specific to Linux and that this library won't compile on macOS, for example.
As of version 0.2.2, Polly is now in Opam and can be installed from there:
opam install polly
Using inside utop
launches a utop toplevel that has the library loaded for interactive use.
Other Epoll Bindings
If you find this useful, please contribute back by raising pull requests for improvements you made.