From 2945d5f494f839eb8a65e303d3a6b2d3ac51f4f6 Mon Sep 17 00:00:00 2001 From: mread Date: Thu, 30 Sep 2010 13:24:40 +0100 Subject: Further hybrid heap review changes this time, adding a comment to explain a performance improvement Task-number: QT-3967 Reviewed-by: Shane Kearns --- src/corelib/arch/symbian/heap_hybrid.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/corelib/arch/symbian/heap_hybrid.cpp b/src/corelib/arch/symbian/heap_hybrid.cpp index b5fcdbd..91faaed 100644 --- a/src/corelib/arch/symbian/heap_hybrid.cpp +++ b/src/corelib/arch/symbian/heap_hybrid.cpp @@ -45,8 +45,7 @@ // if non zero this causes the iSlabs to be configured only when the chunk size exceeds this level #define DELAYED_SLAB_THRESHOLD (64*1024) // 64KB seems about right based on trace data -//#define SLAB_CONFIG 0xabe // Use slabs of size 48, 40, 32, 24, 20, 16, 12, and 8 bytes -#define SLAB_CONFIG 0x3fff // Use all slab sizes 4,8..56 bytes +#define SLAB_CONFIG 0x3fff // Use all slab sizes 4,8..56 bytes. This is more efficient for large heaps as Qt tends to have #ifdef _DEBUG #define __SIMULATE_ALLOC_FAIL(s) if (CheckForSimulatedAllocFail()) {s} -- cgit v0.12