libmill 1.2 发布,此版本最重要的是在成千上万的大量连接场景中,速度快 1700 倍!
性能的大幅度提升主要是因为使用现代的轮询机制 (epoll or kqueue, respectively) 代替了之前的 fashioned poll(2)。
Epoll 是在 Linux,kqueue 是 BSD 变体和 OSX,其他系统实现还是使用 poll(2)。
同时发布了 libmill 1.4.38,主要改进:
mod_secdownload now requires an algorithm option to be set
fix a header parse bug (#2670)
sendfile support for darwin (just select “sendfile” as backend)
libmill 是一个 Go 语言风格的 C 并发编程库。每秒可实现 2000 - 5000 万的协程上下文切换。
下载地址:http://libmill.org/libmill-1.2.tar.gz
来自:开源中国社区

