tag:blogger.com,1999:blog-8355902329995626257.post7147431186799869426..comments2019-01-11T14:33:12.606-08:00Comments on Fahrenheit's C++ exercises: The cost of freeing memoryAnonymoushttp://www.blogger.com/profile/02384473908764663372noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-8355902329995626257.post-68006221145625019292012-09-21T04:06:19.191-07:002012-09-21T04:06:19.191-07:00As long as you are interested in comparative bench...As long as you are interested in comparative benchmarks, would you<br /><br /> (a) consider sharing the benchmark driver code?<br /> (b) consider testing the difference when using libtcmalloc (from Google's perftools)?<br /> (c) especially the behaviour under threading?<br /><br />Given (a), I could do (b) and (c) perhaps :)Amberhttps://www.blogger.com/profile/02588145544781882509noreply@blogger.comtag:blogger.com,1999:blog-8355902329995626257.post-9184949228460855332012-09-21T01:24:09.074-07:002012-09-21T01:24:09.074-07:00Agree, I don't expect any surprises, but will ...Agree, I don't expect any surprises, but will try to benchmark with GCC on Windows / Linux soonAnonymoushttps://www.blogger.com/profile/02384473908764663372noreply@blogger.comtag:blogger.com,1999:blog-8355902329995626257.post-31664846931970238582012-09-20T23:34:50.182-07:002012-09-20T23:34:50.182-07:00I think the results will be quiet similar, baecaus...I think the results will be quiet similar, baecause Windows and Linux are using similar heap management algorithms.milohttps://www.blogger.com/profile/11191502985559995389noreply@blogger.comtag:blogger.com,1999:blog-8355902329995626257.post-51208516567369028332012-09-20T23:32:59.449-07:002012-09-20T23:32:59.449-07:00I think the reason of slowing down in algorithm th...I think the reason of slowing down in algorithm the libc is using. When freeing data it merge little consecutive chunks in bigger ones. Libc doesn't return memory to OS immediately, it is caching it.milohttps://www.blogger.com/profile/11191502985559995389noreply@blogger.comtag:blogger.com,1999:blog-8355902329995626257.post-85356072600527958612012-09-20T12:37:35.061-07:002012-09-20T12:37:35.061-07:00Seems like this was done on Windows - would be qui...Seems like this was done on Windows - would be quite interesting to have the results for Linux, too.Andreas Bergmeierhttps://www.blogger.com/profile/12101686426494263632noreply@blogger.com