commit | 5f7d2284c4b2f08d155732454002e68dc40c33ef | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Wed Mar 04 05:35:38 2009 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Wed Mar 04 05:35:38 2009 +0000 |
tree | bb26aaab964cf5d3fff83c8d353a4f3fef28346c | |
parent | b25df3577cf0560592599609fba7b8ff7557ce84 [diff] |
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