diff options
author | mread <qt-info@nokia.com> | 2010-09-30 12:24:40 (GMT) |
---|---|---|
committer | mread <qt-info@nokia.com> | 2010-09-30 14:48:45 (GMT) |
commit | 2945d5f494f839eb8a65e303d3a6b2d3ac51f4f6 (patch) | |
tree | 54b46a0790ef5c69c3850a03db3b5e4ac9a62993 /src | |
parent | b4aa359990c90553d91f7d2a5d4c4a4361e6d5d6 (diff) | |
download | Qt-2945d5f494f839eb8a65e303d3a6b2d3ac51f4f6.zip Qt-2945d5f494f839eb8a65e303d3a6b2d3ac51f4f6.tar.gz Qt-2945d5f494f839eb8a65e303d3a6b2d3ac51f4f6.tar.bz2 |
Further hybrid heap review changes
this time, adding a comment to explain a performance improvement
Task-number: QT-3967
Reviewed-by: Shane Kearns
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/arch/symbian/heap_hybrid.cpp | 3 |
1 files changed, 1 insertions, 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} |