This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3] Mt_alloc: use __bin._M_free[0]
On Mon, 2004-05-17 at 01:27, Paolo Carlini wrote:
> Dhruv Matani wrote:
>
> >Ok, maybe the 2nd one will have these, but just in case.
> >
> >
> No, the 2nd one deals with another, completely unrelated issue.
Ok.
> >Looking at this part of the code, you could make the operation
> >O(1), if the number of free blocks in the global free list is <=
> >those required. Just reset the pointer to NULL for the global
> >list, and set the next pointer of the current free list to the
> >one of the global free list's old value.
> >
> >
> I see what you mean: nice idea. Are you willing to prepare and test
> a patch implementing this?
Sure. By tomorrow it should be ready.
>
> Thanks,
> Paolo.
--
-Dhruv Matani.
http://www.geocities.com/dhruvbird/
Proud to be a Vegetarian.
http://www.vegetarianstarterkit.com/
http://www.vegkids.com/vegkids/index.html