This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/30204] std::vector operator[] 10x speedup (patch)
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Dec 2006 02:49:59 -0000
- Subject: [Bug libstdc++/30204] std::vector operator[] 10x speedup (patch)
- References: <bug-30204-13750@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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