package core_kernel

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

The policy used for allocating in the heap.

The Next_fit policy is quite fast but can result in fragmentation.

The First_fit policy can be slower in some cases but can be better for programs with fragmentation problems.

The default is Next_fit.

type t =
  1. | Next_fit
  2. | First_fit
OCaml

Innovation. Community. Security.