This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [Patch] Start using the front-end traits in the library
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Tue, 03 Apr 2007 21:15:47 +0200
- Subject: Re: [Patch] Start using the front-end traits in the library
- References: <46115141.7080508@suse.de> <46121816.9020008@redhat.com>
Benjamin Kosnik wrote:
This is so cool: great work.
Thanks Benjamin. Indeed, I agree that many details become neater
(besides the obvious performance improvements for POD, non-scalar types)
At first, I thought we could use these to get rid of __is_scalar in
bits/cpp_type_traits.h. But, probably not. Oh well.
I don't know, at the moment. As far as I can see the only remaining use
is in stl_algobase.h, where Nathan had the idea that moving a __tmp
outside the loop is certainly profitable when the type is sufficiently
small, in the sense that it fits in a register. I think __is_scalar is
rather suited for this task. On the other hand, one can well imagine the
optimizers to do the reasoning, automatically: some time ago I quickly
asked compiler people and the idea appeared to make sense, only waiting
for a volunteer to implement it ;) I'll try to further investigate...
Paolo.