OCaml Optimization Course

Duration: 1 to 2 days

This training has been designed by the OCaml team to focus specifically on writting the most efficient code for demanding applications. Participants will benefit from the direct involvement of the OCaml team in the developement of OCaml compilers.


  • Write the most efficient code for your applications

  • Understand the transformations performed by the compilers

  • Optimize data structures for garbage collection


  • OCaml's compilers internals

  • Analysis of code transformations at different passes

  • OCaml's Garbage Collector internals

  • Efficient code examples

  • Efficient data structures

  • Profiling code and memory

Course Prerequisites

The course assumes some experience of the OCaml language and its programming environment.

Participants are expected to have a computer access during the course (Linux, Mac OS X or Windows), an easy-to-install OCaml archive will be provided before the course to setup a minimal but productive environment.


The course is half theory, half practice. Participants will have to write and adapt simple applications in OCaml, to build and test them. Participants can interact with the teachers about the problems they encounter with OCaml.


OCamlPro can organize this course on-site in your company, by groups of about 10 participants. Content can be customized to better fit your needs. Contact us at contact@ocamlpro.com.