This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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] mt_allocator: spare mem & fix alignment problems


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.


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