This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH]: Poolify df.c


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]