package ocaml-base-compiler
Official release 5.2.1
Install
Dune Dependency
Authors
Maintainers
Sources
ocaml-5.2.1.tar.gz
sha256=2d0f8090951a97a2c0e5b8a11e90096c0e1791d2e471e4a67f87e3b974044cd0
doc/compiler-libs.optcomp/Inlining_cost/index.html
Module Inlining_cost
Measurement of the cost (including cost in space) of Flambda terms in the context of inlining.
module Threshold : sig ... end
val can_inline : Flambda.t -> Threshold.t -> bonus:int -> bool
val can_try_inlining :
Flambda.t ->
Threshold.t ->
number_of_arguments:int ->
size_from_approximation:int option ->
Threshold.t
module Benefit : sig ... end
module Whether_sufficient_benefit : sig ... end
If a function body exceeds this size, we can make a fast decision not to inline it (see Inlining_decision
).
val lambda_smaller' : Flambda.expr -> than:int -> int option
Measure the given expression to determine whether its size is at or below the given threshold. None
is returned if it is too big; otherwise Some
is returned with the measured size.
val lambda_size : Flambda.expr -> int
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>