3 ms·
O hey, just found the heap profiling runs. As you can see, the C++ version uses much less memory (also the C version by the OP uses 73MB - whoa; The OCaml#3 mi
by sehe 14y ago
O hey, just found the heap profiling runs.
As you can see, the C++ version uses much less memory (also the C version by the OP uses 73MB - whoa; The OCaml#3 might report 12MB, but the C++ version clocks in at just 12KB. I'm guessing he C++ version would use the same order of magnitude as the OCaml#3 on comparable input sets, though)
Command: ./c-version
Massif arguments: (none)
ms_print arguments: massif.out.18434
MB
73.22^#
|#
|#
|#
|#
|# :
|# :
|#::::::::::::: :
|#: :::::::::::::@::::@::::::@:: :
|#: :::::::::::::@::::@::::::@:::@::::@:::@:::: :
|#: :::::::::::::@::::@::::::@:::@::: @:::@::::::::::@:::: :
|#: :::::::::::::@::::@::::::@:::@::: @:::@::::::::::@::::::@::::::
|#: :::::::::::::@::::@::::::@:::@::: @:::@::::::::::@::::::@::::::@::::
0 +----------------------------------------------------------------------->Gi
0 16.24
--------------------------------------------------------------------------------
Command: ./cpp-version
Massif arguments: (none)
ms_print arguments: massif.out.18391
--------------------------------------------------------------------------------
KB
12.15^@
|#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|# :
|# :
|# :
|# :
|# :
|# :
|# :
|# :
|# :
|# :
|# :
0 +----------------------------------------------------------------------->Gi
0 11.17
- sehe 14y agoAh well. It looks like I'm just invisible to you then. Sorry for bothering. Good luck with the blog