Benjamin Kramer
82d96cccbc
Grow BumpPtrAllocator's slab size dynamically if we allocated many slabs. This
reduces the amount of malloc calls and may reduce memory overhead.
Some numbers:
ASTContext stats, clang -cc1 -disable-free -fsyntax-only Cocoa_h.m
without dynamic growth | with dynamic growth
Number of memory regions: 3158 | Number of memory regions: 432
Bytes used: 12333185 | Bytes used: 12333185
Bytes allocated: 12935168 | Bytes allocated: 12800000
Bytes wasted: 601983 (includes alignment, etc) | Bytes wasted: 466815 (includes alignment, etc)
ASTContext stats, clang -cc1 -disable-free -fsyntax-only on clang's ASTReader.cpp
without dynamic growth | with dynamic growth
Number of memory regions: 10987 | Number of memory regions: 551
Bytes used: 42910356 | Bytes used: 42910356
Bytes allocated: 45002752 | Bytes allocated: 44711936
Bytes wasted: 2092396 (includes alignment, etc) | Bytes wasted: 1801580 (includes alignment, etc)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115151 91177308-0d34-0410-b5e6-96231b3b80d8
2010-09-30 16:18:28 +00:00
..
2010-09-30 16:18:28 +00:00
2010-08-19 17:58:35 +00:00
2010-08-18 00:33:47 +00:00
2008-01-19 04:31:12 +00:00
2010-04-09 20:43:54 +00:00
2010-09-28 22:39:14 +00:00
2010-05-10 20:11:56 +00:00
2010-09-28 18:18:36 +00:00
2009-08-30 08:24:09 +00:00
2010-08-17 22:32:39 +00:00
2010-06-08 17:21:57 +00:00
2010-04-15 17:08:50 +00:00
2010-06-08 16:21:26 +00:00
2010-06-17 01:23:24 +00:00
2010-09-16 08:20:49 +00:00
2010-06-15 19:20:30 +00:00
2010-08-24 23:16:53 +00:00
2010-09-01 14:20:41 +00:00
2010-09-27 16:54:49 +00:00
2007-12-29 20:36:04 +00:00
2007-12-29 20:36:04 +00:00
2009-01-09 16:44:42 +00:00
2009-06-16 17:33:51 +00:00
2010-06-25 16:07:18 +00:00
2009-09-09 23:46:42 +00:00
2009-08-23 08:43:55 +00:00
2010-08-08 00:00:34 +00:00
2009-12-19 01:38:42 +00:00
2010-09-01 14:20:41 +00:00
2009-08-30 08:24:09 +00:00
2009-08-30 08:24:09 +00:00
2009-09-08 16:14:54 +00:00
2010-04-08 15:25:57 +00:00
2009-09-06 12:26:28 +00:00
2009-08-30 08:24:09 +00:00
2009-08-30 08:24:09 +00:00
2010-07-14 22:38:02 +00:00
2010-04-05 17:50:20 +00:00
2009-08-30 08:24:09 +00:00
2009-08-30 08:24:09 +00:00
2009-09-06 12:26:28 +00:00
2010-06-30 15:02:37 +00:00
2010-09-02 21:55:03 +00:00
2010-09-27 17:42:11 +00:00
2010-08-17 17:37:22 +00:00
2010-01-18 12:40:05 +00:00
2009-11-06 10:58:06 +00:00
2010-07-14 22:38:02 +00:00
2010-08-26 15:25:35 +00:00
2010-09-02 22:32:38 +00:00
2009-09-08 23:32:35 +00:00
2010-08-07 13:27:41 +00:00
2010-09-16 08:25:48 +00:00
2010-05-05 18:40:33 +00:00