6 ms·
It's complex [1], OCaml does have a unboxed representation of floats in arrays [2] and records (provided all fields are floats), but elsewhere they are indeed b
by ywei3410 4y ago
It's complex [1], OCaml does have a unboxed representation of floats in arrays [2] and records (provided all fields are floats), but elsewhere they are indeed boxed.
[1] https://discuss.ocaml.org/t/optimizing-small-vector-operations/7160/18 https://discuss.ocaml.org/t/optimizing-small-vector-operatio...
[2] https://v2.ocaml.org/api/Float.Array.html https://v2.ocaml.org/api/Float.Array.html