Re: [PATCH] Make strbuf_cmp inline, constify its arguments and optimize it a bit

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Kastrup
Date: Sunday, October 7, 2007 - 7:24 am

Alex Riesen <raa.lkml@gmail.com> writes:




My guess is that you are conflating two issues about speed here: the
inlining will like speed the stuff up.  But having to evaluate the
(a->len < b->len) comparison twice will likely slow it down.

So if you do any profiling, you should do it on both separate angles
of this patch.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Make strbuf_cmp inline, constify its arguments ..., David Kastrup, (Sun Oct 7, 7:24 am)