Lupus / camlfiber

Fast native fibers for OCaml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

camlfiber

Fast native fibers for OCaml.

Fibers are implemented by tying together libcoro and OCaml's GC hooks. This design allows allocation free context switches with decent performance. For example, i7-8750H running Linux can perform about 13.7M fiber context switches per second. If you want to measure it by yourself just run make bench from the source directory.

Documentation

camlfiber API

Also, there are few examples in examples directory.

Installing

Prerequisites

  • dune
  • odoc if you are planning to build documentation.
  • bisect-ppx and lcov are required for coverage testing.

Available targets

  • make build library
  • make install install library
  • make bench run benchmark
  • make doc build documentation
  • make test run tests
  • make coverage run tests with coverage reporting

License

This project is licensed under the BSD License

About

Fast native fibers for OCaml


Languages

Language:C 49.9%Language:Roff 41.1%Language:C++ 4.1%Language:OCaml 3.6%Language:Shell 0.7%Language:M4 0.3%Language:Makefile 0.2%Language:Emacs Lisp 0.0%