diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-09-30 16:18:28 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-09-30 16:18:28 +0000 |
| commit | 90086abf2c2ea03aada7012a9560adbffcd00e24 (patch) | |
| tree | 6615858820cb45b1efa6763530a8f652835284bd /llvm/docs/ReleaseNotes.html | |
| parent | 448718a863a4ba3434b6258e5043a8e4ca6954d3 (diff) | |
| download | bcm5719-llvm-90086abf2c2ea03aada7012a9560adbffcd00e24.tar.gz bcm5719-llvm-90086abf2c2ea03aada7012a9560adbffcd00e24.zip | |
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)
llvm-svn: 115151
Diffstat (limited to 'llvm/docs/ReleaseNotes.html')
0 files changed, 0 insertions, 0 deletions

