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]
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.
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?
Thanks,
Paolo.