This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: libcpp - tiny speedup
- From: Dodji Seketeli <dodji at seketeli dot org>
- To: "Nicola Pero" <nicola dot pero at meta-innovation dot com>
- Cc: "gcc-patches\ at gnu dot org" <gcc-patches at gnu dot org>
- Date: Tue, 26 Oct 2010 06:50:23 +0200
- Subject: Re: libcpp - tiny speedup
- References: <1287771464.882432386@192.168.2.230>
Thank you for your bothering doing this, Nicola.
"Nicola Pero" <nicola.pero@meta-innovation.com> a Ãcrit:
> This patch inlines a libcpp hash function for speed. The speedup is
> to tiny (I had to run 100m get_identifier() calls in a loop to measure
> an 8% reduction in time) that I'm not sure it's worth the extra
> complication of having a static inline function in the headers.
Just to make sure, did you notice 8% of reduction time of the
get_identifier call or 8% of reduction of something bigger like, says,
running the preprocessor on some input? I would guess that having
improvement figures on something like the overall preprocessing time of
some somewhat significant input would be useful.
--
Dodji