News for hackers. Stuff that matters.
Re:Disqus bait and switch, now with ads by sehe on Tuesday February 19, 2013 @09:08PM (#5248535)
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
Re:Disqus bait and switch, now with ads by sehe on Tuesday February 26, 2013 @08:11PM (#5289819)
Ah well. It looks like I'm just invisible to you then. Sorry for bothering.

Good luck with the blog