TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: THOMAS MAEDER
from: JERRY COFFIN
date: 1997-07-26 09:10:00
subject: exceptions in c++

On (23 Jul 97) Thomas Maeder wrote to Cameron Clark...
 TM> Have  you  tested the speed of exception handling? I haven't, neither,
 TM> but it's said to be slow, slow, slow.
I participated in a benchmark on the speed of exception handling about a
year ago or so.  Overall, the speed was found to be far less dismal than
expected -- while exiting from some level via an exception was
relatively slow, it frequently wasn't much (if any) slower than creating
a code to indicate the error, then exiting via multiple levels of normal
exits back to the point that the error could be handled.  The exact
difference in speed often depended upon exactly how many levels there
were between the exception and the handler.  If there were very few
levels, normal handling tended to be faster.  If there were many levels
between the two, exception handling tended to be faster.
    Later,
    Jerry.
... The Universe is a figment of its own imagination.
--- PPoint 1.90
---------------
* Origin: Point Pointedly Pointless (1:128/166.5)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.