sizeof in OCaml
- Hi All,
I need to find the memory size of any arbitrary OCaml object of any
type: int, record, list etc. I am currently using 'Marshal.to_string'
to flatten the data structure to a string and then using
'Marshal.total_size' to get the size. Is there a faster way to do this
than flattening the data structure?