]> granicus.if.org Git - clang/commit
allocate MultiKeywordSelector's out of a bump pointer allocator instead of malloc.
authorChris Lattner <sabre@nondot.org>
Wed, 4 Mar 2009 05:35:38 +0000 (05:35 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 4 Mar 2009 05:35:38 +0000 (05:35 +0000)
commit5f7d2284c4b2f08d155732454002e68dc40c33ef
treebb26aaab964cf5d3fff83c8d353a4f3fef28346c
parentb25df3577cf0560592599609fba7b8ff7557ce84
allocate MultiKeywordSelector's out of a bump pointer allocator instead of malloc.
This has two advantages 1) no more leaking them, 2) fewer calls to malloc.

This changes us from calling malloc 3685/1390/883/2974/1185 times respectively on
16/20/24/28/32 byte objects when parsing cocoa.h with pth and -disable-free to
calling it 2816/1020/702/2903/1168 times each respectively.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66017 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/IdentifierTable.h
lib/Basic/IdentifierTable.cpp