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: exchange_and_add inlined in g++ 4.0.2


On Mon, Nov 07, 2005 at 12:03:29PM +0100, Paolo Carlini wrote:

> Indeed. I would appreciate more details about your application, in that
> case.

It is very very string-happy. I'm trying to trim down on that but it is
generating a lot of temporaries, a lot of which can be avoided. But at 0.6
microsecond a pop (based on your 1000 cycle estimate), exchange_and_add is a
heavy function.

The PR is filed http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24704

> I don't think you can do much without recompiling libstdc++-v3, if you
> want something clean and not dirty tricks... Consider that inside the
> library there are also instantiations of string and wstring.

Ah yes. But not that much though, I think.

Thanks for your time!

-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://netherlabs.nl              Open and Closed source services


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