On Sep 6, 1:33 am, David Abrahams <d...@boostpro.com> wrote:
> on Sat Sep 05 2009, Joshua Maurice <joshuamaurice-AT-gmail.com> wrote:
> > Assuming some level of hardware caching, or virtual memory, it must be
> > the case. One of the benefit of exceptions is that in a good
> > implementation, the error handling code is out of line, so the in-line
> > code, the normal code, is smaller than what it would be with the error
> > return codes.
> That's certainly true in principle, but in practice, the last time I
> checked (several years ago), it wasn't true on any platform I could
> find. Has something changed?
Sorry, no. At least, I don't know. I was talking in terms of principle
as well, though for my simple timing tests, for recent gcc versions on
Linux, the overhead is none or quite small, like .1% or smaller,
unlike win 32's ~5-10% overhead for a really contrived testcase. I
should look at the assembly.
[ See http://www.gotw.ca/resources/clcm.htm
for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]