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]

Re: [PATCH]: Efficient sbitmap based bitset


On Sun, Aug 19, 2001 at 03:37:27PM -0400, Daniel Berlin wrote:
> Using this in df.c instead of bitmaps makes it a lot faster, yet uses
> comparable memory. 

On the face of it, this looks pretty reasonable.  I'd prefer
to see it be a complete replacement for bitmap.  That would
either require obstacking this implementation (ick) or fixing
the users of bitmap and make them clean up after themselves.

I also wonder if better memory density could be had by doing
some by-hand memory allocation.  That is, N 64 byte blocks of
memory can be allocated out of raw pages without overhead, 
whereas you'll waste at least 2 pointer's worth with malloc.


r~


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