This is the mail archive of the gcc-patches@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]

Re: libcpp - tiny speedup


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


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