Git Product home page Git Product logo

libiomux's Introduction

libiomux

iomux - High-performance aynchronous I/O multiplexing and timers

C library initially inspired to the perl module IO::Multiplex ( https://metacpan.org/pod/IO::Multiplex ) This library allows to efficiently handle i/o from/to multiple filedescriptors and timers. It supports different backends which can be chosen at compile time. The default is select() but support for epoll() and kqueue() is available (by defining HAVE_EPOLL or HAVE_QUEUE respectively at compile time).

A single mux is able to handle efficiently tens of thousands of active filedescriptors, and multiple muxes can be used seemlessy by different threads.

Timers are implemented using a priority queue to ensure O(1) extraction of the earliest timer. Insertion and deletion are still O(logN) operations and should be performed wisely when using a huge amount of timers.

Timeout on filedescriptors are not going into the priority queue but are handled together with the i/o so (re/un)setting a timeout on a managed filedescriptor is a very cheap operation.

libiomux's People

Contributors

dgryski avatar xant avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.