This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH]: Poolify df.c
- From: Michael Hayes <m dot hayes at elec dot canterbury dot ac dot nz>
- To: Daniel Berlin <dberlin at dberlin dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 22 Mar 2003 16:04:23 +1200
- Subject: Re: [PATCH]: Poolify df.c
- References: <Pine.LNX.4.53.0303201822490.20746@dberlin.org>
DDaniel Berlin writes:
> While we don't reuse refs on the HEAD yet, this will make it easier to do
> so (the branch i know of that reuses refs has to maintain it's own free
> list because of the obstack).
>
> Plus, we usually walk links, or walk refs, or walk links and look at refs,
> not random access. Thus, it makes sense to make the links and refs
> each contiguous in memory, as the pool does.
This seems like a good idea. It would be even better if alloc_pool
was an inline function, falling back to a call when the free list was
empty.
Michael.