# \#data-structure

**URL:** https://discuss.ocaml.org/tag/data-structure/631.md

[Latest](https://discuss.ocaml.org/latest.md) · [Categories](https://discuss.ocaml.org/categories.md) · [Tags](https://discuss.ocaml.org/tags.md)

---

## [Compact, memory-contiguous data structures](https://discuss.ocaml.org/t/compact-memory-contiguous-data-structures/13275)

<div class="topic-metadata">

**Author:** [@UnixJunkie](https://discuss.ocaml.org/u/UnixJunkie)\
**Replies:** 4\
**Last updated:** [September 23, 2024, 10:12pm UTC](https://discuss.ocaml.org/t/compact-memory-contiguous-data-structures/13275 "2024-09-23T22:12:36Z")

</div>

Sometimes, I wonder if many functional data structures used in OCaml could not have a \[compact\] method (lists, sets, maps, etc). This method would encode the data-structure in a contiguous memory region, so that the d…

---

## [How to optimize the memory consumption in OCaml?](https://discuss.ocaml.org/t/how-to-optimize-the-memory-consumption-in-ocaml/14391)

<div class="topic-metadata">

**Author:** [@MiK](https://discuss.ocaml.org/u/MiK)\
**Replies:** 8\
**Last updated:** [April 1, 2024, 4:42am UTC](https://discuss.ocaml.org/t/how-to-optimize-the-memory-consumption-in-ocaml/14391 "2024-04-01T04:42:54Z")

</div>

Hi everyone, I have started to learn Ocaml a few weeks ago and I have made this little project . It’s a kind of “dataframe” library exposing a data structure to store heterogeneous collection of data organized by series…
