This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Platform specific optimizations acceptable?
- From: James Perry <james dot perry at gmail dot com>
- To: libstdc++ mailing list <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 7 Feb 2005 14:59:42 -0500
- Subject: Platform specific optimizations acceptable?
- Reply-to: James Perry <james dot perry at gmail dot com>
Hi there,
I'm wondering if major platform specific optimizations would be
accepted into the STL implementation. I'm thinking specifically of an
optimized std::valarray.
I have an implementation of std::valarray (unrelated to macstl) which
is vectorized; it currently uses SSE2 but could be easily adapted to
other platforms - it uses gcc's vector extensions. In my tests it is
about 4-5 times faster than the current valarray on arithmetic
expressions and about 1.5-2 times faster on operations such as sum.
I am interested in submitting it to libstdc++ when it's completed
(there still some significant missing components, such slices). But I
would like to know if such a large platform specific optimization
would even be considered for inclusion before I spend the time making
sure I've got the standard covered exactly and completely, :-)
Any thoughts/comments?
Thanks,
James Perry