Kaydet (Commit) 6e8e898a authored tarafından Markus Mohrhard's avatar Markus Mohrhard

Revert "by default use the system memory allocator"

It seems that even on Linux the system allocator is worse than our
internal allocator. e.g:
http://perf.libreoffice.org/perf_html/chitest_of_cppu_sc_on_vm139.details.html

This reverts commit 006d30b1.
üst 4f1dca50
......@@ -35,11 +35,7 @@ AllocMode alloc_mode = AMode_UNSET;
static void determine_alloc_mode()
{
assert(alloc_mode == AMode_UNSET);
const char* alloc_string = getenv("G_SLICE");
if (!alloc_string)
alloc_mode = AMode_SYSTEM;
else
alloc_mode = strcmp(alloc_string, "always-malloc") == 0 ? AMode_SYSTEM : AMode_CUSTOM;
alloc_mode = (getenv("G_SLICE") == NULL ? AMode_CUSTOM : AMode_SYSTEM);
}
/* ================================================================= *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment