cvs commit: src/sys/kern init_main.c kern_malloc.c md5c.c subr_autoconf.c subr_mbuf.c subr_prf.c tty_subr.c vfs_cluster.c vfs_subr.c

Peter Wemm peter at wemm.org
Tue Jul 22 17:32:13 PDT 2003


"Poul-Henning Kamp" wrote:

> That is the sort of thing which makes me belive that unless proven
> beneficial (by one of the two criteria), inline is harmful.

There is a great leap there.  Just because somebody isn't willing to spend
considerable time to re-prove that the runtime improvement is still there
to your satisfaction, that doesn't mean that it is harmful.

Take the i386 interrupt vector code.  Thats an example where it is massively
inlined.  Having a non-inlined function that does all the calculations
and bit shifting is much smaller in code size, but slower at runtime.

You have not proven your assertion that smaller code is implicitly faster.
It might be more convenient for you to measure, but it doesn't mean anything
without the same exhaustive runtime measurement that you would have us do.

Cheers,
-Peter
--
Peter Wemm - peter at wemm.org; peter at FreeBSD.org; peter at yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5



More information about the cvs-src mailing list