[Patch] mt_allocator: spare mem & fix alignment problems
Paolo Carlini
pcarlini@suse.de
Fri Mar 26 12:27:00 GMT 2004
Hi,
[snip]
Thanks for your interesting observations: in my opinion first we must figure
out *exactly* where that 10x comes from...
>Another couple of issues that are pending would be:
>
>1. The use of the div instruction on every call of deallocate to
>calculate the nodes to be removed. This is quite a high latency
>instruction, but I don't know how much the performance is affected.
>
>
Probably not much, but I agree that we had better avoiding it, if
possible. I'll
give it a try in a forthcoming batch of minor cleanups.
>2. The algorithm for giving back nodes to the global pool. Instead of
>clipping out one node at a time, why not splice out a whole bunch of
>nodes, and put them all in at one shot? Just a thought. I can prepare a
>patch for this one if needed.
>
>
Looks like a nice idea. Please put together a patch for public scrutiny.
Paolo.
More information about the Libstdc++
mailing list