On Thu, 16 Jun 2011, John Peterson wrote:
On Thu, Jun 16, 2011 at 10:43 AM, Roy Stogner <[email protected]> wrote:
What compiler and flags are you using? It looks like the real
optimization you need here is a change in one or both of those!
GCC 4.2.1, -O3
And now we know which one you need to change. ;-)
Does your STL have memset specializations of std::fill beyond the one
for char? Otherwise I don't see how it can be faster than memset.
The GNU STL implementation is a twisty maze of passages, all alike, so
I may have missed something, but the only obvious specializations I
see are the memset-based char one and the vector<bool> implementation.
There's a memset-based zeroing out in the _Array_default_ctor for all
types, but I don't see any mechanism for fill to use that.
---
Roy
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Libmesh-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-devel