This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libstdc++/30204] std::vector operator[] 10x speedup (patch)



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-12-14 02:49 -------
Can you test with -O1 or above?
As mentioned in comment #1, this should remove all advatages gained from the
"inlined" version.

> Also, that isn't really a fair timing comparison, as you've removed the
> function call altogether (I still expect it to be faster, but possibly not by
> 10x)

For -O0, I would not doubt removing the function calls get a 10x speed up,
which is one of the reasons why -O1 makes this much faster than -O0 :).


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30204


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