help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stl vector slower than pointer access


From: ufnoise
Subject: Re: stl vector slower than pointer access
Date: 1 May 2006 14:00:00 -0700
User-agent: G2/0.2

Well it appears that the original code runs much faster on gcc-4.0.3
and gcc-3.4.4 than on our compilation of gcc-4.1.0.  In fact the stl
array access is slightly faster than the pointer array access.

Very suprising.  Thanks for everyone's response.



Paul Pluzhnikov wrote:
> Paul Pluzhnikov <ppluzhnikov-nsp@charter.net> writes:
>
> > g++ (GCC) 4.1.0 20060304 (Red Hat 4.1.0-3) from FC5 produces
> > bit-for-bit *identical* binary for both cases under -O2 and -O3
>
> That's gcc built for x86_64-redhat-linux
> --
> In order to understand recursion you must first understand recursion.
> Remove /-nsp/ for email.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]