From kde-devel Fri Jun 11 18:45:14 1999 From: Bavo De Ridder Date: Fri, 11 Jun 1999 18:45:14 +0000 To: kde-devel Subject: Re: A note to exceptions && some notes to codesize X-MARC-Message: https://marc.info/?l=kde-devel&m=92912655218136 On Fri, 11 Jun 1999, Peter Putzer wrote: >On Fri, 11 Jun 1999, Steffen Hansen wrote: > >> On Fri, 11 Jun 1999, Waldo Bastian wrote: >> >> > Currently exception handling in kdelibs just adds bloat and kills cache >> > performance without adding anything substantial. It's not worth it. >> >> AFAIK egcs _does_ move exception handling code out of line, so it >> shouldn't interfere with the cache at all (unless an exception is thrown >> of course). > >I once read a webpage from someone doing benchmarks on different >compiler-options (with egcs and pgcc), and he came to the conclusion that >exception-support has improved so much that removing it actually HURTS >performance! > >(All on Linux/Intel egcs and pgcc - no data on other configurations) > We shouldn't aks ourselves if it hurts or not, exception handling is a very good way of dealing with errors (compared with return values), so we should use it. BDR